How to limit number of fields returned?

I was able to limit the number of fields returned via JQL but some of the fields are not being returned.  

 

For example:

project=ABC&fields=created,reporterdisplayname,assigneedisplayname,summary,description,priorityname,statusname,statusstatuscategoryname,duedate,resolutiondate

The above example returned some of the fields but fields such as reporterdisplayname and assigneedisplayname ae not returned.  

Can anyone help me know how to pull these fields as I do not want all 500 fields returned.

Thanks!

1 answer

This widget could not be displayed.
Warren Levy Community Champion Aug 18, 2017

Hi Duc

You say its JQL, but the format of your example looks like the JQL bit appended to a REST API call (your question wasn't that clear about it).

The reporter name and display name are not at the main level within the JSON, it is usually something like reporter.name. Your best bet is to get all 500 fields for one issue, format it in a JSON formatter like this and find the fields that you're interested in. Your JQL bit then only needs to refer to the parent level item e.g. reporter

i hope that this helps

Thank you for your quick response!

Can you advise if the url to use to get all fields in a project is the first example on this page

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

128 views 2 0
Join discussion

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