Jira product: Jira Service Management
Version: 9.12.12
-----------------------------------------------
Hello,
I have an automation in which I want to conditionally set smart variables through if-else blocks and use the resulting variables in a POST web request hook,
When I try to have a single web hook in the very end of the automation, after the if-else blocks, nothing happens. Contrary, if I add the POST request to every if-else clause, it works as expected, however a lot of redundancy and tedious to maintain,
I want to have a single web request like the above, in the very end.
BONUS: If you have a way to shorten it by setting the smart variables, conditionally, without neither if-else blocks nor looktup tables, I would appreciate that as well :)
Welcome to the community.
Your automation is not using 2 IF/Else blocks.
The first if is a comparison, not an IF/ELSE.
The second is an IF/ELSE, if you use and IF/ELSE an action is mandatory, you can't use and IF/ELSE without having an action outside the IF/ELSE.
Based on your rule, you need the web request twice, there is no other option for you based on the conditions you are using.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.