Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

I try to send webhook for some interogation. How to treat failed requests into an if/else block?


I am querying a webhook for some value. If the value is not found I get this error from the webhook:


Action details:

Send web request

Error response HTTP body:{"errors":{},"errorMessages":["The property worktype does not exist."],"httpStatusCode":{"present":true}}Error publishing webhook. Response HTTP status:404


I tried to use an if/else block with these conditions: {{webhookResponse.status}} equals 200 and 404 but I am still getting the error like the condition is never tested (i.e. the failed send webhook test stops execution of the rest of the rule).

2 answers

1 accepted

I used another API endpoint and condition as a workaround for this problem:


Simmo Atlassian Team Nov 25, 2020

Hi @Richard Vencu ,

Have you worked around your issue then or did you still need some assistance?

Thanks for asking. My particular problem is solved but the general question still stands.

Is it possible to test webresponse status code and follow if/else branches in case it is not 2xx type?

Simmo Atlassian Team Nov 26, 2020

Hi @Richard Vencu,

I'm afraid not. We have got an improvement tracking this, which would add the option to allow the rule to continue on a non 2xx response.



Like Richard Vencu likes this
Muhammad Ramzan Community Leader Jan 16, 2021

@Simmo , thanks for creating the ticket, any idea when we can expect the resolution. This is important to handle it because , in my scenario I have multiple calls and actions based on the status if its 200,404,400 or 500.

I am adding comments , doing some other actions but in this case i would not be able to do anything if the status received other than 200.

Simmo Atlassian Team Feb 04, 2021

Hi @Muhammad Ramzan ,

I'm afraid it isn't prioritised at the moment. The best cause of action for you to take if you want to try and get it pushed along is to raise a support ticket.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Software

👋 Looking for 15-20 volunteers to test Atlassian training content

Hi everyone! Are you interested in beta testing Atlassian University’s newest (unreleased!) training course? We’re looking for 15-20 volunteers to test our newest training course, Basic reporting...

608 views 21 25
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you