Forums

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

How to view all incidents based on a custom field?

Kshitij shah March 16, 2023

Hi,

I am using  /rest/servicedeskapi/request"

params = {
"serviceDeskId": 1
"jql": '"cf[10000]" = "test"'
}
this is not filtering the output data. The same jql is working in Jira service desk UI. 
Please help.
I have also used "query": '"cf[10000]" = "test"' but that is also not working.

1 answer

0 votes
Abraham - New Verve Consulting
Contributor
March 17, 2023

Hi @Kshitij shah

To search for incidents I usually use the JQL endpoint instead of the servicedeskapi/request endpoint in this way:
rest/api/3/search?jql=cf[10000] = test AND project = <service desk project name>

Basically the part after ?jql= is what you would actually write in the JQL UI.
You may need to change spaces to %20 like this:

rest/api/3/search?jql=cf[10000]%20=%20test%20AND%20project%20=%20projectName

Hope that helps!
Cheers,

Abraham

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events