Forums

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

How to find who created an issue using REST API?

Anthony Test
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!
November 14, 2022

Hi!

I was looking at this documentation https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-issueidorkey-get for the Jira API and was trying to figure out how to see who reported/created the ticket. I am using script runner for this so I will have the current issue as a context variable but don't know how to access the user that created the ticket. Thanks!

1 answer

1 accepted

4 votes
Answer accepted
Marini Marini
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.
November 14, 2022

Hi @Anthony Test 

You can use the following:

https://<sitename>.atlassian.net/rest/api/2/issue/ITS-2032?fields=reporter

Once you capture the response and store it in a variable, e.g. reporter, you can access the reporter name by the following:

reporter.displayName

You will need to get familiar with the JSON format response whenever you call a JIRA rest API so that you know how to access the correct object.

Thank you,

Marini

Nic Brough -Adaptavist-
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.
November 15, 2022

You might want to look at "creator" instead, in some cases.  Reporter can be changed, but creator is always the account that did the typing/rest call.  

(The most obvious use for this is a helpdesk situation - Agent Alice takes a call from customer Charlie, and types up the request or issue while on the 'phone to them.  Alice creates the issue, but the reporter is Charlie, so Alice names Charlie as the reporter)

Anthony Test
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!
November 15, 2022

Awesome, that makes sense. Thank you!

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events