If I try to make a request to this endpoint:
GET rest/servicedeskapi/request?requestStatus=OPEN_REQUESTS
I get both open and closed requests and when I try to make a request to this other endpoint
GET rest/servicedeskapi/request?requestStatus=CLOSED_REQUESTS
I don't get any request.
In the other hand making a jql request to see if it's open or closed works perfectly.
I need something that works with different workflows.
To Summarize
The problem is that you need to update the resolution field for all closed issues if you have scriptrunner then it is easy task as there is a built-in function to update the resolution based on filter.
if you don't have it you can update it by following the instruction here: HowTo: Bulk Edit Resolution
Note : You need to be sure that your workflow allow you to edit the closed issues.
you can do so by delete "jira.issue.editable" property from Closed transition. please follow the steps here How do I edit closed issues?
Here I can set which resolution I want as default.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
as per JIRA service Desk API
CLOSED_REQUESTS
- Only return customer requests that are resolved.OPEN_REQUESTS
- Only return customer requests that are unresolved.ALL_REQUESTS
- Returns customer requests that are either resolved or unresolved.try to the same name "CLOSED_REQUESTS" in your second query and let's see the results
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually it was CLOSED_REQUESTS. I left out the _REQUESTS but it was correct in my code when I tested it.
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.
Then can you please confirm the resolution for the closed issues.
If the resolution is “unresolved” the issue will be considered not resolved
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I might sound dumb but I do not understand what you are talking about. How can I see if the resolution is unresolved? On the workflow or somewhere else?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
don’t worry, we are here to support each other.
please try to use this jql and find if there is any data retrieved
resolution = unresolved and status = closed
If there is result it means the issues is closed but not resolved which means it won’t return in the api for CLOSED_REQUESTS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I get results for resolution = resolved
How should I fix this?
I want closed to work as resolved.
Maybe it's marking it as unresolved because one can still reopen it actually.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ok, now we found the problem and you need to update the resolution field for all closed issues if you have scriptrunner then it is easy task as there is a built-in function to update the resolution based on filter.
if you don't have it you can update it by following the instruction here: HowTo: Bulk Edit Resolution
Note : You need to be sure that your workflow allow you to edit the closed issues.
you can do so by delete "jira.issue.editable" property from Closed transition. please follow the steps here How do I edit closed issues?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I deleted "jira.issue.editable" property from Closed transition
and then I added the Cursive Set Resolution
The closed requests are showed only if I set the request to "Set Resolution".
How can I make it that when I transition to close the request, it automatically sets the resolution of the request to done for example? So the step doesn't require you to set "Set Resolution"
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
There is no mean to set it automatically to "Done" as not all your request will be resolved , some might be canceled/duplicate/declined.... etc.
I recommend to make the resolution mandatory by adding the resolution field to the workflow screen when transition from "Set Resolution". the field will be mandatory.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I need to do this using the REST API so I don't know how to make it so that is mandatory.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You answered my question. Can you make a different answer so people can directly see it and I can mark it as answered?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I meant You need to update the workflow by adding screen to “Set Resolution” translation And this screen hold the resolution field. This will make mandatory.
you can mark the question as answered directly beside my first reply
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.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.