You're on your way to the next level! Join the Kudos program to earn points and save your progress.
Level 1: Seed
25 / 150 points
Next: Root
1 badge earned
Challenges come and go, but your rewards stay with you. Do more to earn more!
What goes around comes around! Share the love by gifting kudos to your peers.
Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!
Join now to unlock these features and more
The Atlassian Community can help you and your team get more value out of Atlassian products and practices.
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.