Get issue details by passing custom fields in search API.

Harish R July 24, 2019

Hi Team,

 

I want to fetch the details of tickets by passing custom field in JQL search. Please help me in doing this.

https://help.myDomain.com/rest/api/2/search?jql=assignee=user1 AND project = DEMO

In the above api, I can get the list of issues by passing assignee field, but I want to fetch the details by passing the customfield which is created in my jira account. 

rest/api/2/search?jql=customfield_10302

I am getting some permission error 

{"errorMessages":["Field 'customfield_10302' does not exist or you do not have permission to view it."],"warningMessages":[]} 

1 answer

1 accepted

1 vote
Answer accepted
Aleksandr Zuevich
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.
July 25, 2019

Hi,

Try this: rest/api/2/search?jql=cf[10302]

Harish R July 28, 2019

@Aleksandr Zuevich

Thank you :)

RINCON ANGELES JOSE DAVID July 2, 2020

Muchas gracias @Aleksandr Zuevich eso funciono muy bien.

/jira/rest/api/2/search?jql=cf[10060]~1170

Gracias!

Like # people like this
Andre Gott December 30, 2021

Very help. Such thanks!

David Tung April 4, 2022

Hi, if I have field under customer field, how do I specify it in JQL?

e.g. I have 'count' in customer field 10020,

 

I tried cf[10020].count >0 

or cf[10020][count] >0 in JQL, but not working. need help

Suggest an answer

Log in or Sign up to answer