Filter service desk API requests by request id?

Filip Prebeg October 10, 2018

Hi

Is is possible to get all requests from service desk API of certain request type, or rather to exclude certain requestTypeId from the response?

like 

rest/servicedeskapi/request/?requestTypeId=144,145,146

or

rest/servicedeskapi/request/?requestTypeId!=177 

Thanks

1 answer

1 accepted

1 vote
Answer accepted
Alexey Matveev
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.
October 10, 2018

Hello,

You should use the search Rest Api:

https://docs.atlassian.com/software/jira/docs/api/REST/7.12.0/?_ga=2.255610952.1590798507.1538984650-492126670.1535639244#api/2/search-search

You could send a JQL query like this:

"Customer Request Type" = yourrequesttype

Filip Prebeg October 10, 2018

Ah cool
Will give it a try.

Thanks for the quick response! ;)

Filip Prebeg October 10, 2018

It worked... thanks! 

Alexey Matveev
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.
October 10, 2018

You are welcome!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events