Moving a Story to Done when Tasks are done and with manual approval

Caroline Turner
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!
November 12, 2024

Hi! Forewarning that I am pretty new to Jira... 

I am setting up an automation that will move a Story to "Done" once all the Tasks that are linked to it (using "Child of" relationship) are "Done".

Automation.PNG

Currently, it works if the Related issues condition has the condition as "Some match specified JQL". It isn't working when I try to set it to "All match specified JQL" and "Status = Done". Instead, I get the error in the attached screenshot, "The following issues did not match the condition". Stories should only move to "Done" once every Task linked with "Child of" is "Done". 

ErrorAudit.PNG

My second requirement is that the Story is not automatically completed. Many times, Tasks are moved to Done, and then more Tasks pop up for that Story. I want to have some way to control the automation so that I can approve the Story to move to "Done".

1 answer

0 votes
Bill Sheboy
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.
November 13, 2024

Hi @Caroline Turner -- Welcome to the Atlassian Community!

First regarding the "error" you observe in the log, that is indicating one or more issues did not match the condition.  Have you checked the status of the issues which did not match for all link types?

 

Next, with a Jira Automation rule, there is no way to pause execution and ask a person a question.

It seems your team's working methods allow linking a Task to an already completed story which you consider related.  Please pause to consider "why does that happen":

  • is that a mistake, or
  • is that a normal practice?

If it is a mistake, you could create another rule, triggered on issue linking, which detects the condition, removes the link, and notifies the user of the reason the link was removed, perhaps using a comment mention or email.

If it is a normal practice, I suggest there is other criteria involved in considering the linked story completed.  Perhaps your current rule should account for that criteria or not move the story to "done", and instead notify someone (e.g., the assignee) to review the story for closure with a comment mention or email.

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer