We are using Jira and Scriptrunner cloud. I have sub-tasks causing their parent issues advance. The problem is I need sub-tasks to have their resolution set before other issue types using the same workflow. Is this possible?
((Map) issue.fields.issuetype)?.name == 'Sub-task'
issueInput.update.resolution = [[set: ["Done"]]]
Hi Sharron,
Thank you for your question.
I can confirm that it is currently not possible to set the resolution via the rest API's in Jira Cloud as Atlassian do not support this.
However in the Atlassian ticket for this located here they provide some workarounds which outline how to use a separate Jira built in post function to set the resolution as part of the same transition which you may be able to help.
Regards,
Kristian
Hi Sharron,
If this answer has answered your question can you please mark it as accepted so that other users searching for a similar question can see that this has been marked as a correct answer.
Kristian
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kristian,
I have a follow-up question. Teams are so excited about Scriptrunner, I have been asked to edit a few more workflows. I successfully have a sub-task transitioning its parent, but each subsequent sub-task causes an error. The parent is in 'Ready' and the first sub-task to move to 'In Progress' causes the parent to move as expected. The problem is each sub-task after the first causes an error email sent out. I must be missing something.
Regards,
Sharon
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sharon,
In order to transition a parent issue from a sub task then there is a built in post function provided by ScriptRunner for Jira Cloud as described here.
Can you please look at using this function to see if it resolves your issue.
If you are still having issues can you please raise a ticket inside of our support portal located here sharing with us the configuration for the post function and the error message received so that we can look to validate this for you and advise how to resolve it.
Thanks
Kristian
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.