Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Not able to retrieve fields within webresponse using smart values

Dharmesh Patel
October 9, 2023

Hi,

I'm trying to use a smart value to extract the value field in the fourth element of an array from a web response, but I haven't been successful. Can someone please help me identify what I'm missing?

So far, I have tried {{webResponse.body.custom_fields.get(3).value}}, {{#webResponse.body.custom_fields}}{{#if(equals(name,"resolution_note"))}}{{value}}{{/}}{{/}} and few other things but no luck.

jira automation.jpg

2 answers

1 accepted

1 vote
Answer accepted
Kristian Walker _Adaptavist_
Community Champion
October 17, 2018

Hi Stu,

Thank you for your question.

I notice that you have raised issue inside of the ScriptRunner for Jira Cloud support portal and we will work to resolve this issue on the support ticket. 

Regards,

Kristian

Kristian Walker _Adaptavist_
Community Champion
October 17, 2018

Hi Stu,

I just wanted to update you on here as well to let you know that we have resolved the issue and added details of the cause of this issue on our status page at http://status.connect.adaptavist.com/ so that other customers looking at this ticket understand what the cause of the issue was.

Regards,

Kristian

Stu
Contributor
October 17, 2018

Ok thanks guys for the speedy fix.  Cheers

0 votes
Venkatesh Palavai
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
October 3, 2022

Hi @Kristian Walker (Adaptavist): I want to sync the Jira ticket and a JSM ticket in same instance. Using Script Runner can we implement that?

Suggest an answer

Log in or Sign up to answer