How to create automation- When x epic link is tagged, then x add component

Alyssa White June 14, 2023
  1. When an issue is updated 
  2. And If that update is the Epic Link being created
  3. And if the Parent matches “component in (“test”)
  4. Then Edit Issue add Component value(s) you want.

 

I would like to create an automation for when a story is tagged with a certain epic link, then a certain component is automatically added. I know this is close, but the automation still isn't working.

 

Can anyone give me some guidance on this?

Capture.PNG

 

1 answer

1 accepted

2 votes
Answer accepted
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 14, 2023

Hi @Alyssa White and welcome to the community!

I'd recommend something like this:

  • TRIGGER: Field Value Changed (Epic Link)
    This is less noisy than Issue Updated
  • CONDITION: Epic Link Is not Empty
  • IF CONDITION (Related Issues Condition)
    • Epic
    • Matches Specified JQL
    • Component IN (Test)
    • ACTION: Edit Issue Fields (Component)
Alyssa White June 15, 2023

Thanks so much @Mark Segall  this works great!!

Like Mark Segall likes this
Alyssa White June 20, 2023

@Mark Segall follow up question- do the components need to have the same name as the epic link I am trying to tag?

 

For example, I am trying to take this rule across my whole project for different epic links/multiple components-

When a story is tagged with the epic test123, then add components test1 and test345

 

I guess I'm having a hard time understanding what aspect of the rule is tied to the 'Epic Link' name since in my previous example they both had the name 'test'

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
June 20, 2023

Not sure I understand.  The rule condition is looking at the triggered issue's Epic to validate attached component(s) and if it returns true then applies whatever components you've defined to the trigger issue.

Khai Shaun Ng August 23, 2023

@Mark Segall Is "Epic Link" still an option in the trigger of "Field value changed" for automation in Cloud? 

I read somewhere there is an initiative to merge Epic Link and Parent Link into "Parent", but I can only find "Parent Link" in "Field value changed" trigger, and this trigger does not get triggered when Epic link is updated. Is there any way around this?

Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 24, 2023

Hi @Khai Shaun Ng - Unfortunately, Epic Link is not an option for Field Value Changed.  Instead, you'd need to do something like this to kick off the rule which is going to be a more noisy rule:

  • TRIGGER: Issue Updated
  • CONDITION: Advanced
    • {{changelog.Epic Link.fromString}}
      Does Not Equal
      {{changelog.Epic Link.toString}}

As stated, this is noisy, because the rule will trigger every time the issue has any update, but will only proceed if the Epic Link was changed.

Khai Shaun Ng August 25, 2023

@Mark Segall Thanks for the hint, I thought about this too but I think this comes with performance cost. 

However, yesterday I tried changing an Epic of tickets with an automation rule using "Parent Link" in "Field Value Changed" trigger, it somehow worked, can you check if it is also the case for you?

Like Mark Segall likes this
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 25, 2023

Ooh! Very interesting.  Confirmed this works for me as well and I tested in a Free environment to prove out that this is not only available to Premium.

I love it when I learn new things here.  Thanks for sharing!  This is so much more efficient. 

Like Khai Shaun Ng likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events