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: 

How to fetch values using jira api

geethanjali sj
August 5, 2021

I have an issue and need to fetch user details from that issue

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
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 Champions.
August 5, 2021

Which API and which users on the issues?

geethanjali sj
August 5, 2021

rest api

And i need to get user email id and display name

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 Champions.
August 6, 2021

Sorry for the delay, 

If you "get" an issue with https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/issue-getIssue  you'll see it feeds you all the fields back, and when the fields are user fields, it gives you "name" and "displayName".

Given the name, you can look up the email address and other stuff with https://docs.atlassian.com/software/jira/docs/api/REST/1000.824.0/#api/2/user-getUser

Like Petter Gonçalves likes this
0 votes
Martin Bayer _MoroSystems_ s_r_o__
Community Champion
August 5, 2021

Hi @geethanjali sj welcome on the community. Can you share more? What user do you need? Assigne, reported or some custom field's value?

geethanjali sj
August 5, 2021

I need to get the user email id and display name

Martin Bayer _MoroSystems_ s_r_o__
Community Champion
August 5, 2021

Ok, but issue can have following "user" fields

  • assignee
  • reporter
  • custom user picker custom field

so what user value do you need?

geethanjali sj
August 6, 2021

Custom field