Unable to get Fixversion from payload in sublow while doing Jira integration

Aman56
Kilo Explorer

We are trying to integrate servicenow with Jira

we are using bi-directional webhooks

we need to get fixversions of a Jira issue in the sublow

we have used the below script on the filed to get fixversion but unable to get it

var shortDesc = fd_data.subflow_inputs.issue.fixversions;
return shortDesc;
 
we have also tried adding fixversion to sublow inputs .
 
Is there any way to get fixversions ?

 

 

13 REPLIES 13

Maik Skoddow
Tera Patron
Tera Patron

Hi

at Jira the field "fix versions" is an array. Check what kind of data type is returned and handle it accordingly.

Kind regards
Maik

Its an array of object unable to bring it

can you provide an solution the way we can modify the code

var shortDesc = fd_data.subflow_inputs.issue.fixversions;
return shortDesc;

I need the stringified version of that "array of objects". 

Kind regards
Maik

"fixVersions":[{"self":"https://enterprisesystems-test-jirawa.atlassian.net/rest/api/2/version/10030","id":"10030","description":"","name":"test release 017","archived":false,"released":false,"releaseDate":"2022-01-15"}]