Hello!
I'm creating an Automation rule and one of the actions is "Send web request".
When the rule runs, the rule audit log shows that a 200 was recieved.
The next action is "put the web request response into the issue description field".
(I've also tried comments and the summary field.)
But there is no web response "content" in the issue after the automation runs.
What am i doing wrong?
(FYSA, i tried using smart variables but that didn't work either ...)
Hi @Katie Kusjanovic -- Welcome to the Atlassian Community!
First, have you tried writing {{webResponse.body}} to the log to confirm the structure matches what you are expecting with the other attributes you are logging?
Next, in the Send Web Request action, did you select the option to wait until the response happens?
Delay execution of subsequent rule actions until we've received a response for this web request
Finally, I notice your rule is using the Issue Created trigger. If any of the newly created issue fields are used in that Send Web Request action, I recommend adding a Re-fetch Issue action immediately after the trigger and before the request.
The reason is that trigger can fire so quickly that some issue data may not be available to the rule yet. Adding the re-fetch will slow the rule a bit and reload the data before the next steps proceed.
Kind regards,
Bill
>>First, have you tried writing {{webResponse.body}} to the log to confirm the structure matches what you are expecting with the other attributes you are logging?
yes! most definitely! especially once i figured out where that logging was actually occuring ;) ;)
>>Delay execution of subsequent rule actions until we've received a response for this web request
seems like this is probably an important box to check :face-palm:
in fact, now everything's working!!! wow! computers are fast!!!
thanks so much @Bill Sheboy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome; I am glad to learn it is working!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.