We have workflow with only global transition, you can transition to any status from any status.
For the Done transition, a screen with the wanted resolution is prompted.
How do I set a resolution during a transition with Exalate scripting?
issue.resolution = whatever will always keep it empty.
Having a dedicated transition wouldn’t work, because all statuses have global transitions.
The following helped me to set the resolution during a transition. Additionally you can update the script to provide your custom field(s) if they’re mandatory during a transition.
httpClient.post("/rest/api/3/issue/${issue.key}/transitions", """{
"transition": {
"id": "201"
},
"fields": {
"resolution": {
"id": "10100"
}
}
}""")
See The Jira Cloud platform REST API for more details.
1 Like
Javier
February 11, 2025, 4:30pm
3
Thank you for sharing the solution you found! Keep the insights coming!
system
Closed
February 12, 2025, 4:31pm
4
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.