Jira Service Management: How to wait until end of automation to call web request?

Frederik Strøm Friborg
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 9, 2025

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,

choppe.png

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 :)

1 answer

0 votes
Marc - Devoteam
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 9, 2025

Hi @Frederik Strøm Friborg 

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events