I use web request in if/else block:
This is my response body.
But 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.
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Melo
Had similar problem. Replaced webResonse with webhookResponse and it worked
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This works for me as well.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.