I need to create multiple Asset objects using a JSON response. My JSON response is similar to below. This only create the object for first JSON object. What am I doing wrong?
Hey @Dushan Nagahawatta , welcome to the Atlassian Community! Thanks for raising this! You might want to raise it as a Question to get more people to look at this.
I would add a log to check what webResponse.body.request.devices is! From the example JSON you gave above it looks like it should be webResponse.body.request[0].devices but I don't think that is correct!
What are your logs showing? From what you mentioned above it should be working as expected. Happy to help further!
I found this post where someone is trying to do a similar thing https://community.atlassian.com/t5/Jira-Service-Management/Automation-loop-through-WebResponse-results/qaq-p/2140920
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.