Forums

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

Creating Issues using the API with a Organization API token

Pim van den Broek May 30, 2024

Hi,

 

I'm trying to create a solution where I can automatically create issues in our jira cloud instance, but without using a personal account (employee might leave etc). 

I've created an organisation api token, but when I try to use that, I get empty responses (i.e. listing projects).

Is there no other way to create Jira issues without using a personal api key?

2 answers

1 accepted

2 votes
Answer accepted
Kalyan Sattaluri
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.
May 30, 2024

Hello @Pim van den Broek 

Org API Tokens are to manage Org properties of the Jira. Its not a super admin role which lets you create issues etc.

I think you are looking for a "service account" type of role and its token.

Unfortunately, I dont think there is such an option.

People just create a dummy user, assign the user appropriate priveleges across projects, then log into Jira to generate token as a user, and then designate this user as service account and use its credentials for API calls go forward..

Hope it helps. Thanks.

*Above is my understanding.

Pim van den Broek May 30, 2024

Thats what I thought too. Using a dummy user for automation is more a workaround than a solution in my opinion. 

But if there is not other decent solution, that will have to do for now. Thanks for your input!

0 votes
Mohanraj Thangamuthu
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 30, 2024

Hello, Good day. User should have "Create issue" permission on the project and a valid Jira software license for issue creation. Thanks

Pim van den Broek May 30, 2024

I wasn't talking about a user api token, but about Org API Tokens. And unless I'm missing something, you can't add permissions to those.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events