2
1
0

When sending out incident SN work notes to Jira comments (replica.comments = incident.work_notes), got following error:

Cannot cast object '2020-12-01 10:15:25 - John Doe (Work notes) New text ' with class 'java.lang.String' to class 'java.util.List'. Error line: Script684.groovy:13

    CommentAdd your comment...

    1 answer

    1.  
      1
      0
      -1

      When dealing with comments in exalate, you should only use the comments field:


      replica.comments = incident.comments.findAll{it.internal}

      To only send internal comments (worknotes)

        CommentAdd your comment...