Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Next challenges

Recent achievements

  • Global
  • Personal

Recognition

  • Give kudos
  • Received
  • Given

Leaderboard

  • Global

Trophy case

Kudos (beta program)

Kudos logo

You've been invited into the Kudos (beta program) private group. Chat with others in the program, or give feedback to Atlassian.

View group

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

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

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 Mar 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
Community showcase
Published in Jira Service Management

Announcing Mindville Insight is now part of Jira Service Management!

Hello Community! We’re excited to announce that Mindville Insight’s asset and configuration management capabilities will now be integrated into Jira Service Management Premium and Enterprise plan...

663 views 9 15
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you