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.
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”
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I think you can check for the existence of a linked issue. I recall doing that.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try using Related issues condition
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
Thanks so much for your help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.