Hi ,
I am trying to get custom fields using my jql query and have tried various options mentioned on this site like
https://community.atlassian.com/t5/Answers-Developer-Questions/JQL-query-to-pull-custom-fields/qaq-p/507920
and using cf[10021] syntax etc... but i get an 'invalid glob at..." error.
does anyone know what i might be doing wrong? need to get just one custom field. should i use the actual title of the custom field. i did a get on a specific jira item and verified the field i am retreiving is titled "ticket number" but has the id customfield_10021. also jira seems to return lots of other filds that i am not requesting like avatar, icn color etc... how do i get rid of these? i am only requesting id, assignee and status fields along with the custom field
also the title of the custom field has a '/' in it (like "ticket/ID"), so i am guessing will need to escape it with a '\' if i should be using the title instead...?
appreciate the assist.
JQL doesn't return fields, it just gives you a list of issues that match your question. You have to look at what you're using to read out the issue data and tell that what you want.
Take a look at https://developer.atlassian.com/server/jira/platform/jira-rest-api-examples/ and look for the section "Searching for issues and restricting the issue fields returned in the results"
It also shows you how to name the fields in your queries.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.