2 answers
- 10-1
Hi Sonal,
Thanks for your quick response on our Question. We tried changing the Jira incoming code as you mentioned but still it doesn't really worked for us.Here is the ServiceNow Outgoing logic
if (entity.tableName == "incident") { if ((entity.state == "Resolved")) { replica.close_code = entity.close_code replica.close_notes = entity.close_notes } replica.status = entity.state replica.IST_Incident_Number = entity.number replica.attachments = entity.attachments replica.comments = entity.comments replica.IST_Status = entity.state replica.urgency = entity.urgencyValue replica.impact = entity.impactValue }
Can you please help us knowing where we are missing.
- Sonal Otwani
Hi Vaishnavi ,
So in this case you need to use:
def remoteStatusName = replica.status
Let me know if this will work or not.
Thanks and Regards,
Sonal
Add your comment... - 10-1
Hi Olimpia Estela Caceres-Brown,
Can you please check what is the script in your outgoing sync of ServiceNow regarding status field?
Mostly it will contain following script (let me know if it is different):
replica.state = entity.state
In this case, the incoming sync script will be:
def remoteStatusName = replica.state
instead of:
def remoteStatusName = replica.status ?.name
Let me know in case it will not work after this line change.
Thanks,
Sonal
Add your comment...
We have written the logic from ServiceNow to Jira sync where we are trying to set
i. Jira state to " Resolved"
ii. Copy Resolution Code and Notes to Jira
Here is our Jira Service Management Incoming sync Logic
Can anyone help us to know what we are missing here?
Any advise will be greatly appreciated!
Thanks,
Olimpia Estela and Vaihnavi Shinde