Jira authentication options
Last updated
Was this helpful?
Last updated
Was this helpful?
SpecSync supports several authentication options for the . This section provides a summary of how the different authentication options have to be configured:
For Jira Cloud:
For Jira Server or Data Center:
The authentication credentials can be specified in multiple ways:
During the execution of the SpecSync command using the interactive prompt (password is masked). This method is used by SpecSync if either the user name (token) or the password is not configured anywhere else.
Using the --user
and --password
.
In the of the (specsync.json
).
In the .
In system environment variables that can be referred to either in the configuration file or from the command prompt (see examples below). The environment variable name has to be specified using the {env:ENV_VAR}
format (%ENV_VAR%
format is also accepted for backwards compatibility).
Specifying the user name in the specsync.json
configuration file:
Specifying the user name in the command line:
Specifying the user credentials that refer to an environment variable in the specsync.json
configuration file. The example requires the user name to be stored in the environment variable SPECSYNC_REMOTE_USER
:
You can also use the environment variables without the shell resolving their values. For that, specify the value in the {env:ENV_VAR}
format.
SpecSync creates and manages Test Cases in Jira. Therefore to be able to operate it needs to have
read/write access for the Test Case issue type
read access for other issue types the Test Cases are linked to.
More specifically, the following Project permissions are required:
Browse Projects
View Read-Only Workflow
The following Issue permissions are required:
Assign Issues (only if you plan to update the assigned to field)
Close Issues (only if you plan to update the issue state field)
Create Issues
Edit Issues
Link Issues
Modify Reporter (only if you plan to update the related field)
Resolve Issues (only if you plan to update the issue state field)
Schedule Issues (only if you plan to update the due date field)
Transition Issues (only if you plan to update the issue state field)
The following Comments permissions are required:
Add Comments
The following Attachments permissions are required:
Create Attachments
The following example authenticates using the email address account01@mycompany.com
and API token Kyu4Wl3twFAa9cAWklTCB476
The following example authenticates using the PAT AGT2OTk3NjMxNDQyOlBfg4kDgqKreys6v0FzrcDBZR89
In order to connect to Jira Server or Jira DataCenter with SpecSync, you can authenticate yourself with user name and password.
The following example specifies the user name account01
in the configuration file.
A that configures credentials for multiple projects.
In order to connect to Jira Cloud with SpecSync, you can authenticate yourself with Jira API tokens. For that you need to create an API Token in Jira Cloud (see ) and then specify your email address as user name and the token as password.
In order to connect to Jira Server or Jira DataCenter with SpecSync, you can authenticate yourself with Personal Access Tokens (PAT). For that you need to create a PAT in Jira Server (see instructions in the section "Creating PATs in the application" of the ) and then use that as user name without specifying a password.
It is not recommended to include the password to the configuration file. If you don't specify your password, SpecSync will ask for it using an interactive prompt. Alternatively you can consider using or environment variables.