Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to set resolution to Done on one issuetype using Scriptrunner and Jira Cloud

Sharon Connell
Contributor
March 22, 2018

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

1 answer

1 accepted

0 votes
Answer accepted
Kristian Walker _Adaptavist_
Community Champion
April 10, 2018

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

Kristian Walker _Adaptavist_
Community Champion
April 11, 2018

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

Sharon Connell
Contributor
May 16, 2018

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

Kristian Walker _Adaptavist_
Community Champion
May 17, 2018

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

Suggest an answer

Log in or Sign up to answer