Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How can I create an API token on JIRA server?

Leo Breuss October 29, 2020

For JIRA Server Jira v8.5.1, which is running on premise, How do I generate an API token for my account?

2 answers

1 accepted

1 vote
Answer accepted
Roma Bubyakin _Wombats Corp_
Contributor
October 29, 2020

Hi @Leo Breuss

Unfortunately, it's not possible out-of-the-box. It could be done only with 3rd party plugins.

For instance, API Tokens for Jira which I have developed.

Regards, Roman

1 vote
Yevgen Lasman
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 29, 2020

While API tokens are not available for on premises "flavor" of Atlassian applications, you can always use a Basic auth to initiate a session and share it in subsequent requests (storing session cookies). This is a good alternative to API token, which is actually just an alternative to login + password combination in Atlassian Cloud.

Another solution is to use OAuth, which is the best solution but has more requirements to the application/script which is going to work with the Atlassian on premises application.

Leo Breuss October 31, 2020

Thanks for your answer. Isn't basic auth deprecated?
https://developer.atlassian.com/cloud/jira/platform/deprecation-notice-basic-auth-and-cookie-based-auth/

My intention was to configure our on-premise gitlab JIRA integration using an API token instead of password... still not optimal, but a low hanging fruit and better than password.

Daniel Ebers
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 31, 2020

For Jira cloud basic authentication is deprecated as of the article you have cited.
For Jira on-premise (Server) the basic auth is not deprecated.

Like # people like this

Suggest an answer

Log in or Sign up to answer