Forums

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

How can I use Epic Link as a condition for an automation

Nikolaos Vlachos
Contributor
October 6, 2022

Hello everyone, 

I am trying to use the Epic Link as the trigger for an automation rule that whenever a new ticket is created and has a specific Epic Link it will automatically create a clone ticket to another project backlog. 

In the Issue fields condition, it doesn't exist and I haven't managed to find a way how to use the Epic Link as a trigger.

I have already made Epic Link mandatory to be filled when you create a new issue so it will be a perfect trigger for what I want to do.

Any help will be appreciated! 

1 answer

1 accepted

1 vote
Answer accepted
Jack Brickey
Community Champion
October 6, 2022

Hi @Nikolaos Vlachos , can you not simply use "issue created" as the Trigger and use Epic link as the JQL condition "epic link" = xxxx?

Nikolaos Vlachos
Contributor
October 6, 2022

Hi @Jack Brickey  my bad I am already using "issue created" as the Trigger I am struggling with the condition and finding Epic Link, The only option is Epic Name but I am unable to add that to my tickets as it is Locked from JIRA.   

image.png

Jack Brickey
Community Champion
October 6, 2022

If you know the Epic link use JQL condition.

Jack Brickey
Community Champion
October 6, 2022

Also consider that Issue created trigger will not catch modifications to Epic link so you may need second rule depending on your requirements.

Nikolaos Vlachos
Contributor
October 6, 2022

Is there a way to use multiple Epic Links in the JQL condition?

Jack Brickey
Community Champion
October 6, 2022

"Epic Link" in (x, y, z, ...)

Like # people like this
Jack Brickey
Community Champion
October 6, 2022

You can  use the Epic key as reference or epic name.

Like Derek Ryplanski likes this
Nikolaos Vlachos
Contributor
October 6, 2022

Thank you @Jack Brickey  hopefully I can make it work with multiple epics i tested it with one and it works. 

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.
October 6, 2022

Hi @Nikolaos Vlachos 

Yes, and...to the solution Jack provided:

The epic link field is being sunset, with all such relationships being replaced with the parent field.  Please consider this for your rule, which could be modified such that...

  • trigger: issue created
  • action: re-fetch issue (This helps to slow a rule and reload the data, as the Issue Created trigger can occur faster than data is available for rules to use.)
  • condition: issueType is one of the the standard types of Story, Task, or Bug
  • condition: parent is not empty
  • ...

One more thing: what do you expect to happen when the "Epic Link" changes during an issue edit?

Kind regards,
Bill

Like # people like this
Nikolaos Vlachos
Contributor
October 7, 2022

Hi @Bill Sheboy
When they are editing the issue we don't necessary expect anything to happen on the clones issue as it will already have the serve it purpose it also has  been highlighted to only update the trigger issue but in case they ask in the future to have another automation for when an issue is updated. 

 

Kind Regards

Nikos

Like Bill Sheboy likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events