What is the best way to block closing of Story until all sub tasks are closed?

Ramya Srinivas October 10, 2024

 

What is the best way to block closing of Story until all sub tasks are closed?

3 answers

1 vote
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 11, 2024

Hi @Ramya Srinivas 

Within Cloud you are able to do this in the workflow.

Set a Condition on the workflow to Done, this is an ootb function 

User the Sub-Task Blocking Condition in the workflow, in this condition, set the required status or statuses of that the sub-task(s) need to be in.

Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 11, 2024

The automation suggested by @Tuncay Senturk

This is useful if you want the parent the transition automatically.

0 votes
Nacho Moreno Ortega
Contributor
October 13, 2024

Hi @Ramya Srinivas ,

I am part of the Decadis support team and i would like to recommend you to take a look to the following use case of our app Jira Workflow Toolbox Cloud:

Check for unresolved sub-tasks.

This use case verify if the current issue has any unresolved sub tasks.

If you need more information, I encourage you to create a ticket on our support portal!

Best regards,

Nacho

0 votes
Tuncay Senturk
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 11, 2024

Hi @Ramya Srinivas 

You can achieve this using Automation and Workflow Condition

With Automation create a rule which checks subtasks and sets a flag field in the issue

  • Set the trigger to Issue Updated and select the transition that moves the Story to Done status (or Closed or any status in your system meaning Closed).

  • Add a condition selecting Related issues - subtasks. Then set the condition to check if all sub-tasks are closed, e.g. All match specified JQL (resolution IS NOT EMPTY or status = Done)

  • Add an action which updates the issue field to true flagging that all subtasks are closed

     

  • In your workflow condition check this field to be true to complete the transition

Or, if you want you can use Workflow Validator (using Script Runner or JMWE). There are validators like sub-task Blocking validator etc.

 

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events