Forums

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

Automation to add label when creating a story in a parent

Emilie Hill
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!
January 26, 2024

Hello!

 

I am trying to create an automation to add a label to a newly created story if it is assigned to a specific Parent (formerly Epic). I was able to do something similar before when it was "Epic" but with "Parent" the only option that comes up is "Link to Parent" with the option to input a manual value:

Screenshot 2024-01-26 at 9.17.56 AM.png 

I thought previously I could link the ACTUAL Epic (now Parent).

Screenshot 2024-01-26 at 9.19.55 AM.png 

I feel like I'm missing something when trying to create my condition? But I'm not sure what to put. I've tried a ton of different things like containing portions of the epic/parent name and I still can't get it to pass. Each test I create says "doesn't match conditions"

1 answer

0 votes
Rudy Holtkamp
Community Champion
January 26, 2024

Hi @Emilie Hill ,

Welcome to the community.

It seems like you want to label a newly created issue if the parent contains 'Bug' the summary, is that correct. If so you can use the following automation rule:

image.png

 

Where the condition is a smart value condition:

{{triggerissue.parent.summary}} contains Bug

If this is not what you looking for, could you clarify you question?

Emilie Hill
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!
January 26, 2024

Thanks so much for the quick response Rudy! Also I am so sorry I am bad at explaining things!

Basically I just want to create an automated rule that

When an issue is created

If that issue is in a particular Parent

Then assign a particular label to that issue.

 

I tried what you wrote above (I totally forgot about smart values) but I still couldn't get it. Could truly be because of how our system is set up though.

Suggest an answer

Log in or Sign up to answer