The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
  • Community
  • Q&A
  • Jira
  • Questions
  • Jira automation rule with two webhooks (1 incoming, 1 outgoing), which one does smartvalue reference

Jira automation rule with two webhooks (1 incoming, 1 outgoing), which one does smartvalue reference

Laura Guzman
March 18, 2021

I've created a rule that triggers upon an incoming webhook, and further sends a webhook via get request. The requests are working, but if I want to access the data from the webhook using smart values, which webhook does the smart value reference? The incoming one or the outgoing one? Is there a way to access the last one (outgoing get request)?

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

6 votes
Answer accepted
Ravi Sagar _Sparxsys_
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 Champions.
March 18, 2021

Hi @Laura Guzman 

Trying to understand your question. You can access the response that you get from the REST call using the following smart value.

{{webhookResponse.body}}

Let me me know if this is what you were looking for?

Ravi

Laura Guzman
March 18, 2021

Thanks Ravi.

I was accessing the webhook data via smart value --> {{webhookData}}

So my question is more about the fact that I'm using two webhooks within one Automation rule. For example:

1. Incoming webhook (trigger event)

2. Filter issues based on Step 1 webhook data

3. Outgoing (GET) webhook

4. Edit issue fields based on Step 3 webhook

 

Because I'm receiving data from two webhooks, will the {{webhookdata}} smartvalue in Step 4 automatically reference the last webhook data that I got in Step 3, and not the data from webhook in Step 1. This is what I'm struggling to understand so I can better structure my workflow. 

 

Hope this makes sense ! 

Ravi Sagar _Sparxsys_
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 Champions.
March 18, 2021

So try to use {{webhookResponse.body}} and make sure you select Wait for response checkbox.

Like Laura Guzman likes this
Laura Guzman
March 18, 2021

Thanks Ravi!

This worked !!! :)

Ravi Sagar _Sparxsys_
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 Champions.
March 18, 2021

Good to know that.

0 votes
Ankit Rastogi
Contributor
August 16, 2023

@Ravi Sagar _Sparxsys_ I am using two web requests in Jira Automation Rule and I need to fetch status code for both requests in the end of both requests using {{webResponse.status}}. So, I am using two requests, how can I refer separately as I am not sure for which web request status is returning using {{webResponse}}?

Csaba Reinhardt
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!
February 17, 2026

Were you able to solve that? I have the same issue 

two outgoing web calls 

Step 1 trigger 

Step 2 first web call -> works like a charm 

Step 3 trying to use the result of the response as a request parameter 

Step 4 using step3-s response data  

 

If I'm testing it now I'm getting step 2's response in step 4 even if the waiting checkboxes are ticked

 

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events