Can I prevent issues from being closed while the sub-tasks are still open in a Team Managed Workflow

Bill Quinn
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 17, 2022

I've setup basic workflow in Team managed workflow which has basic transition rules. (not advanced transitions with properties, triggers, validators etc..)

 

Can I set the workflow to not allow the Issue to be transitioned to a particular status, while it has subtasks that are not 'Done'?

Or is it only available for particular workflow types?

 

 

1 answer

1 accepted

1 vote
Answer accepted
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 18, 2022

Hi @Bill Quinn and welcome to the community!

As you know, team managed projects have less capability so you don't have the same condition logic you would have with company managed projects.  However, you could do something with a combination of the transition rule "Check an issue's field" and a couple automation rules:

Create a custom field (a checkbox should be fine) 

AUTOMATION RULE #1

Check the box when a new subtask is created

  • TRIGGER: Issue Created
  • CONDITION: Issue Type = Subtask
  • BRANCH: Parent
    • ACTION: Edit Issue (check the field created above)

AUTOMATION RULE #2

Uncheck the box when last subtask has been moved to Done

  • TRIGGER: Issue Transitioned to Done
  • CONDITION: Issue Type = Subtask
  • BRANCH: Parent
    • CONDITION: All Subtasks status = Done
    • ACTION: Edit Issue (Uncheck the field created above)

TRANSITION RULE

  • Check an issue's field = Your custom field = False
Bill Quinn
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 20, 2022

A great help Mark... Thankyou!

Adair_ Danny
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
December 8, 2024

+1 this was a big help for me, too! 

Bonus tip / newbie realization: in the IF condition, the "done" status must be listed as upper-case "DONE", otherwise this condition wasn't satisfied. 

A bonus bonus tip for is the THEN action has to reside within the parent branch of the rule, otherwise the rule won't find the parent field within the subtask issue. 

Suggest an answer

Log in or Sign up to answer