1
0
-1

How do I sync comments so that the author appears as the one that made the comment as opposed to the ExalateIntegration user?


This is for both directions. Jira to SNow and SNow to Jira.

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      Regarding this piece: For Jira to SNow comment passing, currently the author can't be passed. However, you can do a workaround by "building" a comment with the Jira author in it and pass that to SNow.


      How does one go about building a comment with the Jira author in it?  I have been searching high and low for this answer.

        CommentAdd your comment...
      1.  
        1
        0
        -1

        For Jira to SNow comment passing, currently the author can't be passed. However, you can do a workaround by "building" a comment with the Jira author in it and pass that to SNow.


        For SNow to Jira, passing the author works well using the following code. Note this code will only work if the SNow username matches the Jira user email.


        SNow Outgoing Sync:

        replica.comments = "entityType".comments

        e.g. replica.comments = incident.comments


        Jira Incoming Sync:

        issue.comments = commentHelper.mergeComments(issue, replica){ it.executor = nodeHelper.getUserByEmail(it.author?.username) }

          CommentAdd your comment...