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: 

Help with get tickets for user and create agent api

Saurav Pant
May 2, 2021

I am looking for 2 APIs -

1. Get tickets for a user, any user not logged in user.
2. Create an agent

is this even possible?

Please help.    

 

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
Ismael Jimoh
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 Champions.
May 2, 2021

Hi @Saurav Pant 

Search for issue: https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/search parse JQL matching what you want to search for. However the user searching must have access to Jira and issues.

Create agent: for this requires 2 APIs

  1. Create user: https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/user-createUser
  2. Add user to group: https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/group-addUserToGroup

Unlike search, the user used here to login to Jira must be a JIRA administrator already to be able to create and add another user to a group.

Feel free to ask if you have further questions.

Saurav Pant
May 3, 2021

@Ismael Jimoh  I have created a 3LO oauth app and getting toke from it.

Can I still use these?

Ismael Jimoh
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 Champions.
May 3, 2021

Yes that should work.

TAGS
AUG Leaders

Atlassian Community Events