Dear JSM community
I started 2 days ago to look into the REST API, but now I am stuck to use / extract the payload of my GET ISSUE request.
I have established for testing a very simple automation rule as follows:
When validating the GET ISSUE request: every thing seems fine, positive response and payload visible (I shortened the screenshot a bit):
When I try to write the payload down into the Audit log (or a comment in the ticket): the {{webResponse.body} seems to be empty:
What I am missing here? Hope someone can help me out.
Kind Regards, Rudy
Hello @Rudy Rohde
Correct syntax is {{webhookResponse.body}}
And subsequently {{webhookResponse.body.key}} or {{webhookResponse.body.fields.priority.name}} etc to reference the fields..
Hope it helps and accept answer if it solves your problem, thanks!
Dear @Kalyan Sattaluri
With {{webhookResponse.body}} or {{webhookResponse.body.key}} or {{webhookResponse.body.fields.priority.name}}...still the same result: nothing :(
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Kalyan Sattaluri : YOUR ANSWER IS CORRECT
I just forgot now with the changed to delay the further execution till the GET method completed. Working now
Thanks a lot
Rudy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hmm. Strange. Can I suggest..
Instead of using smart value in the GET call, for test purposes, provide directly issue key like below and trigger the rule from an issue and log {{webhookResponse.body}} as you were and see if you getting results.
https://mbgroup-atlassian.net/rest/api/2/issue/TEC-90
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.