Forums

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

Jira automation - Populate Epic when Stories are linked

louise.simmonds October 20, 2022

Hi,

I'd like to automate the following:

  • When a Story A is linked to Story B (relates to)
  • If Story B does not have an Epic linked
  • Then automatically link Story B to the same Epic as Story A

I'm struggling to figure this out but hopefully it can be done!

Thanks in advance :-) 

1 answer

2 votes
Mark Segall
Community Champion
October 20, 2022

Hi @louise.simmonds - This is possible.  However, the challenge with Relates To is that it's impossible to identify the source/target of the link vs other link types (Blocks/Is Blocked By, Clones/Is Cloned By). 

You could do something like this:

  • TRIGGER: Issue Linked
  • BRANCH (Current Issue)
    • CONDITION: Epic Link IS EMPTY
    • ACTION: Edit Issue (Epic Link)
      • {{destinationIssue.Epic Link}}
  • BRANCH (Destination Issue)
    • CONDITION: Epic Link IS EMPTY
    • ACTION: Edit Issue (Epic Link)
      • {{issue.Epic Link}}
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 20, 2022

Hi @louise.simmonds 

Yes, and...to Mark's answer:

Please consider adding a couple of additional conditions on epic link (testing for not empty) before the edits.  That will avoid attempts to link to an empty link and so reduce "noise" in the issue history.

Kind regards,
Bill

Suggest an answer

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

Atlassian Community Events