Forums

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

Update field based on linked sub tasks and thier status

Scott Federman
Contributor
December 13, 2018

I have an "initiative" issue type. It has a "blocker" sub-task type. The blocker has two statuses open>resolved. 

I need help trying to find a way that if an initiative has any blockers that are in the open state then the "blocked" checkbox is checked. If there are no blockers or all linked blockers are resolved, then the box is unchecked. 

Is this possible? Would someone be able to show me how?

1 answer

0 votes
Brant Schroeder
Community Champion
December 13, 2018

Scott,

  You would need to use a third party plugin to update your custom field (checkbox).  I would recommend one of the following three JSU, ScriptRunner or Automation for JIRA.  Each have different ways of accomplishing what you are asking to do.  The least complex way to accomplish this is to do it using a workflow transition to fire off the action. 

Scott Federman
Contributor
December 13, 2018

Okay we have scriptrunner. Any idea what that script world look like?

Brant Schroeder
Community Champion
December 13, 2018

You will need to use a post function.  I would use https://scriptrunner.adaptavist.com/latest/jira/builtin-scripts.html#_fires_an_event_when_condition_is_true

You can then update the parent task when the condition is true.

Scott Federman
Contributor
December 13, 2018

the issue i see with this is that its transition based. so when i resove one blocker it will uncheck the blocked field. But i need tit to look for any and all blocker tickets and only uncheck when everything has been resolved.

Brant Schroeder
Community Champion
December 13, 2018

Yes that is why you write it to only fire when the condition is true.

Scott Federman
Contributor
December 13, 2018

Ok its clear i dont know a thing about scripting. I have no idea what im looking for. What would that script look like? :)

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events