Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups

Send web request, handle response code not equal to 200


I am trying to write an Jira Project Automation that sends a webrequest. 

If I get a response code that is NOT 200 I would like to send another webrequest to another url.

I am trying to use:

If: matches

{{webhookResponse.status}} does not equal 200script.png

But the problem is that Jira Automation stops the execution if the webhook response isn't 200 so it is not event trying to send to my second webserver.

This is the Audit log:


Action details:

Send web request

Error response HTTP body:Error publishing webhook. Response HTTP status:400



Is it possible to read the response.status and send a new webrequest if it's not 200?

3 answers

1 accepted

1 vote
Answer accepted
Darryl Lee Community Leader Jan 18, 2021

I'm thinking it's not possible. I had a web request that had a possibility of failing, and I tried to "trap" for unsuccessful requests by checking {{webhookResponse.status}}. It never worked.

Alas, upon closer inspection, you only that smart value that if it's successful:

On successful webhook execution, you would be able access webhook response data using the following smart values:

I think we'll need to ask for a Feature Request. :-}

Thanks for the reply!

Hmm ok, I'll have to work around this in another way, then.

Like Darryl Lee likes this

For information, since version 8.0 from Jira Automation.

The rule now continue even if the response is in error.

This will allow to test this value. 

What is strange is that ticket  is still open.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Atlassian Automation

Jira Automation: Sum Up Story Points Roundup (Initiatives -> Epics -> Story/Tasks -> Subtasks)

Hi Everyone, In this roundup we combine all the jira automation rules to sum up story points across different issue types. We start from the lowest level, summing up story points from sub-tasks t...

1,848 views 2 7
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