Hi All,

Need help in JIRA rest API to get issue details. Right now am using 'rest/api/2/issue/issuename?expand=names,changelog' which retrieves me all details. Is there a way to get only the details shown in JIRA UI using rest API? Basically need to limit the Issue details to those shown in the JIRA. Any input would be helpful.




1 answer

0 votes

Hmm.  The REST data returned is all the data that's shown in the UI.  So I'm a little confused as to what you are looking for.

However, yes, you can restrict what it returns.  If you add, for example, &fields=id,key to the end of the query, you'll only get the id and key back.  Other fields would be like summary, customfield_nnnnn and so-on.

Thanks Nic, but am looking for a way without explicitly mentioning the fields. For example, when i go to an issue, I am able to see around 10 fields. But the REST API is returning around 20. And I need only the 10 fields to be returned to API. I cannot give &fields=id, key etc as the fields shown would change for different issues.




How do you expect JIRA to know what fields you want to get?

Suggest an answer

Log in or Join to answer
Community showcase
Teodora [Botron]
Published Thursday in Marketplace Apps

Jira Inferno: The Nine Circles of Jira Administration Hell

If you spend enough time as a Jira admin - whether you are managing a single, mid-sized instance, a large enterprise one or juggling multiple instances at once - you will eventually find yourself in ...

426 views 1 14
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot