Error on Servicenow Jira Integration using Jira Spoke

syam1
Tera Contributor

Hi,

 

We have trying to implement Jira Integration in ServiceNow using Jira Spoke. In Flow we are using create issue action and while setting additional field values we are facing below error for one field value.

Error:
Can not deserialize instance of java.lang.Long out of START_OBJECT token
at [Source: N/A; line: -1, column: -1]

 

When we check that field configuration at Jira end, its an custom field which is locked. During on-premise Jira integration for locked fields we are able to set the data during issue creation. But, now Jira team is moved to Atlassian from on-premise setup.

At ServiceNow side when we try to create new issue at jira using create issue action its not working for locked custom fields where above error is coming. If anyone encountered the similar issue. Kindly provide some inputs to resolve the error.

7 REPLIES 7

@syam1 Are you creating new variable or updating existing one like,

// Manually set the numeric value for the custom field
fd_data['customfield_10024'] = '52';

 

And in the Create Issue action, do not use the Additional Fields UI for customfield_10024. The script step will set the value directly in the payload.

Just verify if helps you.

@Abhay Kumar1, without the field selection we can't get the script step option to pass the values right. How can we do it without selecting the fields. Kindly let me know

 

dhirennotani
Giga Expert

Hi @syam1 ,

Thanks for posting you question here!

I would recommend you to try out a completely decentralized, and fully bi-directional intergration solution like Exalate.

With the advanced Groovy based scripting engine you can sync any tickets with any type of custom field easily.

Thanks