Forums

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

How to create a JIRA ticket using JSD API and Service Accounts for an individual user?

Cyril, Hazel
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!
March 9, 2021

I am building a custom application targetting 100+ users, which raises JIRA Service Desk tickets on behalf of the logged in user. I am presently using JSD API using the API token of a service account. Such tickets reflect the service account as creator on them. What is the approach to create tickets using API that reflect the logged-in user as the creator rather than having to raise the ticket on behalf of or tag the user as a participant? Is there a defined approach to use individual users' API tokens for creating tickets/ commenting on the tickets? 

1 answer

0 votes
Dario B
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
March 16, 2021

Hello @Cyril, Hazel ,

Welcome to the Atlassian Community!

If I understand correctly your are building a custom app that interacts with Jira Service Management and you would like to know the best way to authenticate the REST API calls.

If my understanding is correct then you may want to review the "security overview" page of the JSM platform development guide:

Authentication and authorization methods differ depending on whether you are building an Atlassian Connect app or another type of integration.

These methods are summarized below.
[...]

 

Therefore, in your specific case, if you want to build an 3rd party app without using the Connect framework the way to go is to use OAuth 2.0 authorization code grants (3LO).

 

If my understanding is not correct, please provide more details.

 

Finally, for the future, please notice that this is not the best place to get help on development  related questions. The right resources are listed in https://developer.atlassian.com/resources. 

Specifically:

 

I hope this helps.

 

 

Cheers,
Dario

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events