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:Ā 

Automation: can't use smart value {{webResponse}}

Adan Zeng
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!
March 5, 2023

I use web request in if/else block:

image.pngThis is my response body.

image.pngBut in the following step, when I want to use {{webResponse}}, it shows the value is empty, no matter I use {{webResponse.body.message}} or {{webResponse.body}}, even {{webResponse}}, it shows empty.

image.png

2 answers

1 accepted

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

4 votes
Answer accepted
Kristopher Perez
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 10, 2023

Hey @Adan Zeng ,

Before complicating the automation with If/Else blocks, make sure you are getting the responses that you expect.  The best way to do this is with the "Log Action" action.

There shouldn't be anything that stops the web request body or status from being reported in the If/Else block.

This works fine for me with an automation I am already using to monitor for new Public Filters.

Your next step would be to add a Log Action right after the request and keep working at it until you get the responses you are expecting.  The one "Gotcha" is making sure to have the check marks under "Wait for responses."  Based on what you are looking for you would need both.

 

 

 

Kris

Cursor_and_Automation_-_JIRA-2.png

Cursor_and_Automation_-_JIRA.png

3 votes
Melo
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 6, 2023

Hi @Adan Zeng, welcome to the community!

Have you tried the smart value {{webhookResponse.body}}?

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-issues/#--webhookResponse--

Cheers,

Melo

Adan Zeng
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!
March 8, 2023

It didn't work for me. I think the root cause is I use web request in if/else block, and I can only get the response inside block.

Thomas Wolfe
Contributor
February 25, 2024

Thanks Melo

Had similar problem. Replaced webResonse with webhookResponse and it worked

Like • # people like this
Deepak Rai
Community Champion
January 8, 2025

This works for me as well.

DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
PREMIUM
TAGS
AUG Leaders

Atlassian Community Events