Hi All,
I am new to Jira Automation and I am trying to capture the result of webrequest using Jira automation. But when I try to get the items of the list contained in JSON, I get no response. Could you please help me with it?
The payload is similar to:
{
"maxResults": 100,
"startAt": 0,
"total": 3,
"isLast": false,
"values": [
{
"id": "130",
"value": "ABC",
"disabled": false
},
{
"id": "140",
"value": "XYZ",
"disabled": false
},
{
"id": "130",
"value": "AABB",
"disabled": false
}]
}
and the print smart value that I am using it {{webResponse.body.values(0)}} to access the first element so that my expected outcome is {"id": "130","value": "ABC","disabled": false}
It should be something like:
webResponse.body.values.get(2)
Something similar is stated here :
Also as @Bill Sheboy stated, it would be better if we know the complete web request return to understand the exact smart value to be entered.
You note that the "payload is similar to..." but does it exactly match what you are expecting?
One way to check this is to write the entire response to the audit log after the webrequest to learn what is happening.
And...have you selected the option to wait for the webrequest return before continuing with the rule steps?
Kind regards,
Bill
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.