I have an automation as follows
Trigger- Value changed for customfield_123 for Create and Edit Issue
If customfield_123 contains A
then add component - A
else - If customfield_123 does not contains A
then remove the component - A
else - If customfield_123 contains B
then add component - B
else - If customfield_123 does not contains B
then remove the component - B
.
.
else - If customfield_123 contains C
then add component - C
else - If customfield_123 does not contains C
then remove the component - C
The problem is when I create a ticket customfield_123 as A, or remove the A, it works as expected.
Now when I am creating a new ticket or editing the an existing ticket with customfiled_123 as B, it is not considering the else - If customfield_123 contains B condition. Same thing is select the value as C, it is not checking the condition for C
It is just checking the FIRST 2 if condition and not the others. Is there any restriction on how many if-else we can put in an automation.
I do not want to create multiple automation, is there a way this can be achieved.
Thanks for the help.