Forums

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

How to link components and epic links

Chaitanya B March 7, 2022

When component is selected then it automatically updates the epic link in the ticket to ensure it goes into the correct queue

2 answers

1 accepted

0 votes
Answer accepted
Mark Segall
Community Champion
March 7, 2022

Hi @Chaitanya B and welcome to the community!

You'd want to start the automation like this:

  • TRIGGER: Field Value Changed with field Component

Without more understanding of your business logic that would establish component-epic mapping, I can think of a couple ways of doing this:

OPTION 1 - Dynamic Mapping

  • Use the Lookup Issues action to capture the epic key based upon whatever logic you have. For example, if your epic name is the same as the component name:
    • Epic Name = {{issue.components}}
  • Use the Issue Edit action to update the Epic Link field with the results of the lookup issues action above:
    • {{lookupIssues}}

Note - For this approach to work, you need to ensure that 1 and ONLY 1 result is returned from the Lookup Issues action

 

OPTION 2 - IF/Else Logic

If you don't have business logic that enables you to dynamically capture the epic, you could hard set it with If/Else conditions.  For example:

  • If Component = Component A
    • Issue Update Epic Link with <Epic 1 Key>
  • Else If Component = Component B
    • Issue Update Epic Link with <Epic 2 Key>
  • Else If Component = Component C
    • Issue Update Epic Link with <Epic 3 Key>
Chaitanya B March 10, 2022

mark thank you so much. I have used  this above option 2 it worked

Like Mark Segall likes this
1 vote
Levente.Szava
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 3, 2022

I'd like to update the Components field when I change the field vaue of Epic links.

E.g.  We have a component   'TEST COMPONENT'

which has an epic 'TEST EPIC'


When I create a new user story and change the Epic link='TEST EPIC', I'd like the Components field to be updated to 'TEST COMPONENT'.

Can you please advice how can I achive that?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events