2
1
0
1 answer
- 210
Hi HA
Please DO NOT use following construct
entity.work_notes += replica.addedComments
The way ServiceNow works is that updating entity.work_notes will result in a single new work_note containing the provided content. Because the original entity.work_notes (which is provided to the incoming sync) contains all the work notes of the entity, the statement above will effectively duplicate the work_notes.
You can imagine the consequence if you sync this a couple of times.
The proper way to add work notes is by setting the flag 'internal' to trueentity.comments += replica.addedComments.collect { it.internal = true it }
Give it a try
CommentAdd your comment...
Overview
Content Tools
search
attachments
weblink
advanced
I only want to sync Jira comment into ServiceNow work_notes field.
ServiceNow Incoming rule added:
but I am getting the below error: