Hi Team,
I'm trying to achieve following using script runner.
Based on values provided or selected in one field, need to call rest service to fetch data from external APIs, which will return following response in format.
{
"ac": "string",
"acCode": "string",
"acTime": 0,
"cItDTO": {
"coverageId": "string",
"date": "2021-10-03T05:37:02.252Z",
},
"comments": "string",
"currencyCode": "string",
"exchangeRate": 0,
"itDescription": "string",
"itMfgDTO": {
"it": "string",
"mfgCode": "string",
"mfg": "string",
"vendorDTO": {
"vendorCode": "string",
"vendorName": "string"
}
},
"line": "string",
"location": "string",
"pnDTO": {
"averageCost": "string",
"commodity": "string",
"Description": "string"
},
"quantity": "string",
"quotePrice": "string",
"trx": "string",
"trxDate": "2021-10-03",
"uqDTO": {
"Id": "string",
"description": "string",
"type": "string"
}
}
Need to populate all these values to various fields.
So far i worked on single field population only but no idea to handle multiple field values from json and pass it back to server side script or behaviour script to populate multiple fields in that issue screen.