1
0
-1
2 answers
- 10-1
TNX
it's workAdd your comment... - 10-1
Please try the following:
if((previous.customFields."SNOW Comments"?.value!=replica.customFields."SNOW Comments"?.value) && replica.customFields."SNOW Comments"?.value){ def comment = new BasicHubComment() comment.setBody(replica.customFields."SNOW Comments"?.value) comment.setInternal(false) incident.addedComments += comment }
Kind regards,
Ariel
Add your comment...
Question by client:
I try to sync text field from jira to Additional comments on Service Now but the comment created as Work notes and not as Additional comments.
my script is:
if((previous.customFields."SNOW Comments"?.value!=replica.customFields."SNOW Comments"?.value) && replica.customFields."SNOW Comments"?.value){
def comment = new BasicHubComment()
comment.setBody(replica.customFields."SNOW Comments"?.value)
incident.addedComments += comment