Is there an elegant way to glean the user who logged an issue via the api?

Joshua Bennett December 24, 2024

Note that I don't want to extract the reporter field, as this field is mutable and can be changed.

 

I need to extract the name of the person who initially logged the issue. 

I have tried the changelog endpoint below but this doesn't seem to start logging until after the issue is created, so doesn't record the person who logged the issue. 

 

https://developer.atlassian.com/cloud/jira/platform/rest/v2/api-group-issues/#api-rest-api-2-issue-issueidorkey-changelog-get

 

 

It doesn't appear to be available via the 'get issue' endpoint either. 

Any other ideas? 

1 answer

2 votes
Ashish Bijlwan
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.
December 24, 2024

Hi @Joshua Bennett 

You can use creator field.  Creator will be the one who created the issue in Jira.

https://<sitename>.atlassian.net/rest/api/3/issue/ABC-123?fields=creator

 

Also, you can add creator field as column in issue navigator and it  will show you the creator name:

image.png
image.png

Regards,
Ashish

Pablo Vergara
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.
December 24, 2024

Hi @Joshua Bennett - additionally to what @Ashish Bijlwan suggested, you can use smart values (Find all available smart values for a Jira issue) in an Automation for Jira rule to obtain the creator's values and set them in any way you want.

Smart value: {{issue.fields.creator.displayName}}

See the example in the attached picture below:

Screenshot 2024-12-24 095427.png

I hope this helps you!

- Pablo / SSE - ServiceRocket

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