Automation - Web Request - How to Handle 404 Errors

Calvin
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.
July 9, 2024

Hi all, I have a web request to a link in an automation, the link sometimes gives 404 errors when its down.

The thing is, this completely errors out the Web-request automation. Is there any way to handle these requests, as I'd rather just add a comment to the ticket about the error as opposed to the automation itself failing and emailing the Automation Owner.

1 answer

1 accepted

5 votes
Answer accepted
Jehan Bhathena
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 9, 2024

Hi @Calvin ,

Yes, in order to view the web request's status, you need to check the option "Continue running the rule even if the request response is not successful (i.e. non-200 response)"

You can reference this using the smart value highlighted in the image below:

image.png

Calvin
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.
July 9, 2024

Hi Jehan! Thanks so much for the above!

I think I misunderstood the checkbox. I thought it meant "continue running rule" as in continue the web request over and over until a 200. Not that it meant continue the rule as in the whole entire automation!

Calvin
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.
July 9, 2024

Tested now and it works perfect, your a legend, thanks!

Shadab
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!
October 29, 2024

Is this option "Continue running the rule even if the request response is not successful" - is this available only on particular versions of Jira ? 

We use Jira 9.4 .. but I do not see this option in the SendWeb Request action. 

 

Thanks. 

Jehan Bhathena
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 29, 2024

Hi @Shadab 

that option is visible only after the first check box is checked of "Delay execution...."

Let me know if the option isn't available even after you've checked that

Edwin Stol
Contributor
October 29, 2024

Hi @Shadab - This option is not available on the Server/DC-version of Jira, sadly.

Shadab
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!
October 29, 2024

@Jehan Bhathena I did check the delay execution checkbox.

Its still not available. 

Am I doing something wrong here .. ?? 

Screenshot 2024-10-29 232839.jpg

Jehan Bhathena
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
October 29, 2024

Hi @Shadab 

I'd suggest raising a mew question on the forum with the jira_dc tag, you'll get better visibility for this question that way, please add the image in your new question too.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events