My webhook successfully gets a token back, but I cannot use it any anything as Jira just fails to grab it. I've tried putting it into a variable, a comment or directly into the next webhook but its always blank.
My response is this;
Headers (6)
Content-Type: application/vnd.appd.cntrl+json;v=1
x-content-type-options: nosniff
x-frame-options: SAMEORIGIN
x-xss-protection: 1; mode=block
Payload
{
"access_token": "xxx",
"expires_in": 5
}To access the token I've tried
{{webResponse.body.access_token}}
{{webhookResponse.body.access_token}}
{{webResponse.body.substringBetween("access_token\":", ",") }} - this works but leaves the " marks at beginning an end of the token, and trying to find the token between the 2 "'s doesnt work.
Anyone have an idea?