Hello,
I’m trying to retrieve all Jira Service Management tickets that have the “Completed” status in Jira using the JSM Request API.
I’m currently calling:
/rest/servicedeskapi/requestwith:
params = {
"serviceDeskId": 7,
"requestStatus": "CLOSED_REQUESTS",
"requestOwnership": "ALL_REQUESTS"
}However, not all Jira tickets with status Completed are returned - some appear in the response, while others do not.
Could you please clarify:
Whether CLOSED_REQUESTS is the correct requestStatus to retrieve Jira Completed tickets
Or if there is a different recommended way to fetch all Completed Jira tickets via the JSM API
Thank you,
Eusebiu
Hi @Eusebiu Gancea ,
you could also use the Jira API to search for your JSM work items via JQL:
The Jira Cloud platform REST API
This will also work for JSM work items.
Best regards
Nico
But as @Fabio Racobaldo _Catworkx_ mentioned.
You should also check if your work items have a resolution set. Otherwise they wont appear in the request status "CLOSED_REQUESTS".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Eusebiu Gancea ,
please could check if tickets in Completed status that don't appear on the response have a correct resolution field and resolved date set?
I'm my opinion CLOSED_REQUESTS are ticket that are resolved on jira backend side.
Please let me know,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks mate. I used the wrong API call, now is solved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.