Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to fetch the issues based on cutomfields?

mounika August 29, 2019

Actually i searched for the above question there they gave like use cf[10200]=value.I tried with that but it is not working.It is giving error message like cf[10200] is not found or you don't have permissions to access it.

1 answer

1 accepted

0 votes
Answer accepted
Jack Brickey
Community Champion
August 29, 2019

are you asking for how to construct a JQL to find issues where a custom field has certain value? Or are you asking for how you determine a custom field's ID?

former: using JQL ... mycustomfield = xxx

latter: go to Jira settings > issues > custom field and find your field. on the right click ellipses and Translate. Look at the URL and you will find the ID at the end

OR...

are you asking something else?

mounika August 29, 2019

yes am asking for this one only i will try with what you said.Thank You Mr.Jack

mounika August 29, 2019

http://localhost:8082/rest/api/latest/search?jql=customfield_10200='xxxxx' i tried with this url but am getting error message like 

{"errorMessages":["Field 'customfield_10200' does not exist or you do not have permission to view it."],"errors":{}}
Warren
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 30, 2019

Hi @mounika 

I've tried a similar call and get the same error message, but I was able to make it work by using the actual field name, changing single quotes to double and using ~ instead of =

So using customfield_12701 ~ "2h" gives me the error

But ... using "Dev Estimate" ~ "2h" returns a list of tickets with no errors

Like mounika likes this
mounika August 30, 2019

Thank You Mr.Warren

I got response with your solution

Suggest an answer

Log in or Sign up to answer