Forums

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

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

5 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 Leaders.
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 Leaders.
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 Leaders.
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}}?

Suggest an answer

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

Atlassian Community Events