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

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 Leaders.
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 Leaders.
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

Suggest an answer

Log in or Sign up to answer
TAGS
atlassian, jira service management, jsm webinar, ai in jsm, opsgenie integration, incident management, virtual agent, atlassian intelligence, ai-powered service desk, it operations, atlassian learning, service management webinar, team '25 recap

What’s new in Jira Service Management 🤔

Discover how Atlassian is revolutionizing service management with cutting-edge solutions for AI-powered support, HR Service Management, or DevOps connectivity.

Register here ⬇️
AUG Leaders

Atlassian Community Events