Questions for Confluence license has expired.

Please purchase a new license to continue using Questions for Confluence.

Try to sync Additional comments but it create Work notes

 
1
0
-1

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

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      TNX
      it's work (smile) 

        CommentAdd your comment...
      1.  
        1
        0
        -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

          CommentAdd your comment...