The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

Can i use API Key Manager for Jira app to create new issue?

Chiranjibi Chapagain
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 23, 2023

I need a way to create jira ticket using Rest API with a token that is not connected to any particular user. I found API Key Manager as a probable solution to my case but couldn't figure out how to use it for creating issue. 
I used the token in header apiKey:<Token> but i am getting error that i don't have permission. 

Thank you!

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Aron Gombas _Midori_
Community Champion
May 23, 2023

Do you mean API token here?

If you do, then note that the token belongs to a Jira user account. If you use it to authenticate and create an issue, then that user will be the reporter of the issue.

Chiranjibi Chapagain
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
May 23, 2023

Yes API Token. We are trying to implement an automatic ticket creation in case of errors in server and we don't want it to be connected to any particular user, so that we don't have to change the token when a person leaves. But seems there is no such possibility?
thanks @Aron Gombas _Midori_ 

Aron Gombas _Midori_
Community Champion
May 23, 2023

An issue must always have a reporter.

But, in this case, you could just create a user account intuitively named (e.g. "auto-creator" or something) and use that only for this purpose. That would properly fill the reporter field, yet it would be distinguishable from human users.