atlassian
How to get these credentialsAtlassian site URL plus an API token (Cloud), a personal access token (Data Center) or an OAuth token
CREATE SECRET atlassian (
TYPE atlassian,
site_url '<site_url>',
email '<email>',
api_token '<API_TOKEN>', -- secret
personal_access_token '<PERSONAL_ACCESS_TOKEN>', -- secret
oauth_access_token '<OAUTH_ACCESS_TOKEN>', -- secret
cloud_id '<cloud_id>',
api_gateway_url '<api_gateway_url>',
deployment '<deployment>'
);
| Key | Type | Required | Description |
|---|---|---|---|
| site_url | VARCHAR | — | Site URL as you browse it: https://acme.atlassian.net (Cloud) or https://jira.example.com/jira (Data Center). http:// only for 127.0.0.1/localhost. |
| VARCHAR | — | Atlassian account email for API-token basic auth (Data Center: a username). | |
| api_token secret | VARCHAR | — | API token from id.atlassian.com (Data Center: the user's password). |
| personal_access_token secret | VARCHAR | — | Data Center personal access token (sent as Bearer). |
| oauth_access_token secret | VARCHAR | — | OAuth 2.0 (3LO) access token with read scopes. |
| cloud_id | VARCHAR | — | With an OAuth token: the site's cloud id, to route through https://api.atlassian.com/ex/jira/<cloud_id>. |
| api_gateway_url | VARCHAR | — | Override of the OAuth API gateway (default https://api.atlassian.com). |
| deployment | VARCHAR | — | auto (default: detect from /rest/api/2/serverInfo), cloud or datacenter. |
The worker doesn't mark which keys are required.