Hello Community,
Whenever a task is transitioned from a status "In testing" to "To Do", I'd like to add a label that depends on which time such a change occurred, for example:
1st time transition from "In testing" to "To Do" --> add "label-1"
2nd time transition from "In testing" to "To Do" --> add "label-2" and remove "label-1"
3rd time transition from "In testing" to "To Do" --> add "label-3" and remove "label-2"
I tried 2 different approaches:
1st approach using advanced branching --> this behaves like a for loop and loops over until final label is reached
2nd approach using if/else if --> this works fine for the first iteration, so it adds the "label-1" but then every time it succeds (success in audit log) but there's no any change
Looking for any ideas how to fix that!
In your first condition in the if/else loop, you have both "labels is empty" and "labels is not empty", so it will always meet this criteria. I think you need to adjust that condition.
Hello Matt,
Thanks for your answer - there are OR operators everywhere
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Michał Nowak ,
I think that's exactly what @Matt Parks is getting at. Your condition is "labels is empty OR labels is NOT empty", which will always be true.
If you can rely on the labels being applied correctly, I would build my conditions just with that, like so:
labels not in (label_1, label_2, label_3, label_4, label_5) => add label_1
else if labels = label_1 => remove label_1, add label_2
else if labels = label_2 => remove label_2, add label_3
..and so on.
Hope that helps,
Oliver
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.
Try out Colored Label Manager , You can add or remove labels in bulk in two clicks.
Warm Regards
Atlassway Team
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.