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

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

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 Leaders.
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 Leaders.
May 3, 2021

Yes that should work.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events