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"]]]