Forums

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

Add label on issue based on parent

Ileana V_ December 21, 2023

Hello all,

 

I have two projects in my company - one for epics and one for stories (I don't want to enter in more detail here).

I want to create an automation which adds a label on the issuea based on the label on the story. (but not the same label). For example:

All epics which have the label "xxx" the stories linked with will have the label "yyy"

I guess this is done with Smart Values, but I don't really understand how this works; can someone give me a hand, please?

 

Thanks!

2 answers

1 accepted

0 votes
Answer accepted
Trudy Claspill
Community Champion
December 21, 2023

Hello @Ileana V_ 

Are you working with the Jira Cloud project or Jira Server/DC?

Are the "linked" stories linked to the Epics using generic issue linking, or are the connected by being children of the Epic?

What event is the trigger for the automation?

If you have started to construct the Automation, please show us what you have so far.

Ileana V_ January 12, 2024

Hello Trudy!

 

Thanks a lot for your answer, the change that Atlassian did în the last month helped me reach my goal.

To answer your questions and also tell the final result:

It's a Jira Cloud and in the past the stories were "linked" via Epic Link, but now they are li ked with Parent, as Atlassian did some updates. That cumulated with the fact that they changed the UX for the automation rules lead me towards the next solution:

1. An automation is triggered every time an "issue field is updated" and I've selected the "issue field" Parent.

2. With Smart Values I take the name of the component with {{issue.parent.components.name}} and compare with my value.

 

3. Add what I need in the edited issue with update field or update issue.

 

Thanks a lot for your answers, guys! If it's helpful I will post a print screen of the automation when I'll get to the computer. 

0 votes
Craig Nodwell
Community Champion
December 21, 2023

Hi @Ileana V_ to add to what @Trudy Claspill has already asked this may not be as complicated as having to use smart values to achieve what you are trying to do.  If you could answer the questions she's put forward I'm sure one or more us will be able to help you find a solution.

Suggest an answer

Log in or Sign up to answer