Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Not running an automation again for - Linking Test issue type to its trigger issue

Nicola August 23, 2023

 

Hi there, I have an automation in place as screenshot below.

When an Issue has its Fix Versions field changed it should create a Test in the same project and link it to the Issue that triggered the rule.

But  - How would I make sure the automation didn't run again if I made the Fix Versions field empty, but then repopulated it again?

So, not creating and linking a new test if the issue got moved to a different Fix Version.

 

Capture.PNG

1 answer

1 accepted

1 vote
Answer accepted
Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 23, 2023

You could add a label when the rule runs that can then be tested for as a condition. 

for example …

if labels does not equal “I-ran-before”

Nicola August 23, 2023

I see what you mean. It feels like adding another layer on top of the rule.

I am trying to think of some logic that looks like 'don't run the rule again if there is already a test linked', but I am not sure that is a thing.

I am going to have another think, but maybe you are right - adding a label at the time a test is created and linked and then using that label to not add another test if the issue is moved to another fix version, could be the way to go.

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 23, 2023

I think you can check for the existence of a linked issue. I recall doing that. 

Jack Brickey
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 23, 2023

Try using Related issues condition

IMG_2435.jpeg

Nicola August 29, 2023

Amazing! I initially added that instruction at the end of the rule and wondered why it didn't work.

Instead I shuffled it around so that it logically made sense as below.

Capture.PNG

Thanks so much for your help.

Like Jack Brickey likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events