Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Automation rules not firing for Epic Link on issue creation via AR

In our Jira project we have an automation rule triggered on Issue creation. It creates some related tasks and adds them to the same Epic as the Issue that was just created.

This works fine in Jira but when the Issue is created via Advanced Roadmaps it doesn't work properly.

It appears that AR first creates the issue and, second, sets the Epic Link. This means the automation rule fires before the Epic Link is set.

Is this expected behaviour? Why does AR not create the issue and set the Epic Link in one step? Can anyone think of a good workaround?

1 answer

1 accepted

0 votes
Answer accepted
Curt Holley Community Leader Dec 14, 2021

Hi @Darrel Jackson 

I believe it happens due to not being able to create a story in AR with the Epic link populated as part of the (virtual/staging) creation.

See my below experiment.

I created a story via AR, immediately associated with an Epic and then gave it a start date. When you review the changes, it shows created + 2 fields....updated. So this is how it feeds the updates to Jira, as a basic creation followed by updates

Screenshot 2021-12-15 131320.png

See history tab of story:

Screenshot 2021-12-15 131902.png

I'll have a think/play on how to best get Automation to catch these, but the workaround is, create them in Jira where Epic link can be set as part of creation.

Curt Holley Community Leader Dec 14, 2021

Regarding your automation, i think the simplest solution would be to create a manual trigger version of it that you evoke from the epic and it creates the story and associated tasks.
This could be as well as the one that works in native Jira. Then instead of creating the story in AR, open the Epic (from AR), run the manual version....refresh the Plan and as long as they meet the criteria of the Issue sources of the Plan, they will be there.

Yes, I think those are the best workarounds based on current limitations. I'll raise a support ticket to see if AR can be fixed/enhanced to do the issue creation and the setting of the Epic Link in one step.

Like Curt Holley likes this

I raised a support ticket on this and support have found a better workaround. Add a "Re-fetch issue data" step to the automation rule and it will fire after the Epic Link is set.

Like Curt Holley likes this
Curt Holley Community Leader Jan 16, 2022

Brilliant. I must confess, I've never used that action. But now I know..... 😊👍

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events