Basic auth authentication is used accepted for user authorization. Therefore you need to create an API token and use it as username in . Basic auth requires API tokens. API tokens are generated and managed in API tokens tab on Jira’s Apps page.
...
Username. Token labels are used to create a username for a REST client. The username has the following format: tokenLabel@instanceName@stlassian.net.
Password. The password is API token itself. For example, Y71AteRwSra1keDalEvp0Y
You con can also use our postman Postman collection for this and define {{tokenLabel}}, {{instanceName}} and {{apiToken}} as variables.
Authorisation for Automation rules
...
Authorisation header for web requests uses the same information but in a slightly different construct.
Below you can see an example of a constructed authorisation header:
Authorization: Basic user@stagil-test.atlassian.net:
...
API Tokens
Create API tokens in the app administration:
...
TDTJ9mu06roWwkLqUmlh45
where
user = token label
stagil-test.atlassian.net = your instance URL
TDTJ9mu06roWwkLqUmlh45 = token
Next, the string user@stagil-test.atlassian.net:TDTJ9mu06roWwkLqUmlh45
should be encoded via Base64.
The last step is to fill out the header with an encoded string as shown in the example to the right.
Postman Collection
View file | ||
---|---|---|
|