Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Ability to update a related Sub-Task based on the Status of another Sub-Task

Steve Huffman January 3, 2024

I am trying to figure out a way to automatically update the status of a Sub-Task based on a Status change of another Sub-Task under the same parent.  For example:

  • Story
    • Generate Code Merge Sub-Task
    • Merge Validation Testing Sub-Task

The Generate Code Merge Sub-Task is manually moved from In Progress to Done.  Automation updates the status of the Merge Validation Testing Sub-Task from Open to Ready.

1 answer

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 3, 2024

Hello @Steve Huffman 

Are the Summaries for these related subtasks fixed? Will it always be that when a subtask with summary = "Generate Code Merge Sub-Task" is transitioned then you will want to transition its sibling subtask where summary = "Merge Validation Testing Sub-task"?

Will there ever be more than one subtask that contains the text of either of these Summaries?

You could accomplish this with a rule structure thus:

Screenshot 2024-01-03 at 4.18.42 PM.png

Steve Huffman January 4, 2024

Thank you.  This got me much closer than I was when I started.  I can get the above to execute, but it is not changing the status of the secondary sub-task.  Below is what I set up.  Is there something I am missing I am not seeing?

 

NOTE: To answer your question regarding if the names are fixed, I am using the names as prefixes and then appending the parent name to the end.  I am using another automation to generate the two sub-tasks.

Example

- Generate Merge Request_Parent Story Name

- Merge Validation Testing_Parent Story Name

 

Here is my automation.

JIRA Automation SubTask-StatusChange-SubTask.jpg

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 4, 2024

Review the Audit Log for the Rule.

Is the overall status for execution entries "Success" or some other value? 

If you click on the Show More link next to one of those Success-ful executions, what are the details for that execution?

Steve Huffman January 5, 2024

The audit log shows a "No Actions Performed" response.  In the image below, the DAT-1035 issue is the "Generate Merge Request_" task.

If I change the Branch from parent = {{issue.parent.key}} to parent = {{issue.parent}}  the result is the same; however the audit log status changes to "Success"

JIRA Automation Log.jpg

Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
January 5, 2024

Notice the last message.

No related issues that have been updated since the last time this rule executed could be found.

When you create a For Related Issues/JQL step there is a checkbox that is checked by default that will further constrain the selected issues to only ones that have been updated since the last time the rule executed. Uncheck this box and see if that makes a difference.

Screenshot 2024-01-05 at 9.19.43 AM.png

Steve Huffman January 5, 2024

That fixed it!  Thank you!!!

Like • Trudy Claspill likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
atlassian, team '25, conference, certifications, bootcamps, training experience, anaheim ca,

Want to make the most of Team ‘25?

Spend the day sharpening your skills in Atlassian Cloud Organization Admin or Jira Administration, then take the exam onsite. Already ready? Take one - or more - of 12 different certification exams while you’re in Anaheim at Team' 25.

Learn more
AUG Leaders

Upcoming Jira Events