Forums

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

action close sub-tasks

Jesper F
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!
September 15, 2025

Im trying to set up an action that closes all child sub-tasks  when the parent transition to Done.
I have got it to work if the sub-task is in status all other statuses then open.

But how do i make the sub-task to also set the open sub-tasks to Done?

1 answer

1 accepted

3 votes
Answer accepted
Christos Markoulatos
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.
September 15, 2025

Hi @Jesper F  try the below

Add a hidden “any → Done” transition for sub-tasks

  1. Edit the sub-task workflow used by these issues:
    • Project settings → Workflows → Edit.
  2. Add a transition:
    • From: All statuses (or at least from Open)
    • To: Done
    • Name: e.g., Auto-close
  3. Restrict it to Automation only (so users don’t see it):
    • Add a Condition: User is in project role = atlassian-addons-project-access
      • This is the built-in role for the Automation for Jira app user in Cloud (similar concept exists in DC if you use the bundled Automation app).
  4. Ensure Resolution gets set:
    • Either add a post-function on this transition to set Resolution = Done, or let Automation set the Resolution in the action (see rule below).
  5. Publish the workflow.

Now Automation can take any sub-task—including Open—straight to Done.

 

Automation rule (Jira Cloud / DC with Automation app)

Trigger: Issue transitioned

  • To status = Done (your parent’s Done)

Condition (Optional but recommended):

  • Issue Type is not Sub-task (i.e., only run when a standard parent issue is done)

Branch: For Sub-tasks

Inside the branch:

  1. Condition: Status is not Done
  2. Action: Transition issueDestination status: Done
    • In the same action, click “Add fields” and set Resolution = Done (or your team’s preferred resolution)
  3. (Optional) Comment: “Closed automatically because parent was completed.”

Make sure the Automation for Jira user has the Transition Issues permission via the atlassian-addons-project-access project role (default is usually OK).

Hope this helps 😊

Jesper F
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!
September 15, 2025

Worked after i edited the workflow

Christos Markoulatos
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.
September 16, 2025

Keep rocking @Jesper F !!!!

Suggest an answer

Log in or Sign up to answer