How fix my automation to change the status of a task under the same epic?

Jeremi Nilsson February 27, 2023

How do I fix my automation to change the status of a task in correlation to another task's status only under the same epic?

image.png

My goal is to automatically change the PCAP - Baseline task to in progress when C&D - Baseline is marked complete but only within the same Epic (baseline in this case)

Some tools I have to work with are,

Labels for PCAP - Baseline task are, Workflow and PCAP

Labels for C&D - Baseline task are, Workflow and C&D

This is what I have so farScreen Shot 2023-02-27 at 11.54.30 AM.png

and my audit log

Screen Shot 2023-02-27 at 11.56.14 AM.png

1 answer

1 accepted

2 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.
February 27, 2023

Hello @Jeremi Nilsson 

The branch you have specified (For Stories or other issues in Epic) only works when the issue currently in context is an Epic. In your case the issue in context is a child of an Epic.

I would recommend that instead you use the Branch for Related Issues/JQL and use a JQL statement to retrieve the sibling issue.

project=<your project> and "Epic Link" = {{issue.Epic Link}} and Labels = Workflow and Labels = PCAP

Within that branch you can then set the Status value of the found issues. You can either set it to an explicit value, or copy it from the trigger issue using the smart value {{triggerIssue.status}}

 

(My use of Epic Link in the JQL assumes you are addressing issues in a Company Managed project. If you are working with a Team Managed project the criteria is slightly different.)

Jeremi Nilsson February 27, 2023

Thank you for the response @Trudy Claspill 

Applied the JQL

Screen Shot 2023-02-27 at 4.52.23 PM.png

I got the error below

Screen Shot 2023-02-27 at 4.53.52 PM.png

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.
February 27, 2023

You need to replace the text <your project> with your actual project key AO.

Jeremi Nilsson February 27, 2023

That was it, Thank you much @Trudy Claspill

Greatly appreciated!

Like Trudy Claspill likes this
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.
February 27, 2023

You are welcome, @Jeremi Nilsson 

If you problem has been solved, please consider marking the Answer thread as Accepted to help other users find posts with working solutions.

Like Jeremi Nilsson likes this

Suggest an answer

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

Atlassian Community Events