Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Automation - Multiple Web request status

Ankit Rastogi
Contributor
August 16, 2023

Hi team, 

I am using two web requests in same Jira Automation Rule and I am trying to fetch status code for both the requests in the end of both requests execution using {{webResponse.status}}.

But I am using two requests, how can I refer distinguish them as I am not sure for which web request status is returning using {{webResponse}}?

1 answer

1 accepted

2 votes
Answer accepted
Jose Juan Lendinez Fran
Contributor
August 16, 2023

Hello @Ankit Rastogi ,

 

The variable {{webResponse}} refers to the last webhook in the automation rule. To be able to compare or track the two statuses you will have to create a variable with the action "Create variable" and save {webResponse.status}} as soon as you perform the first webhook. And after the second webhook you will be able to have the status of the first webhook with the variable created by you and the second status accessed with {webResponse.status}}.

 

Greetings, Jose Juan

Ankit Rastogi
Contributor
August 16, 2023

Great, thanks!

Suggest an answer

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

Atlassian Community Events