1
0
-1
  1. Destri Weir

    I am using a visual connection with scripting, and I can't get this script to work:

    issue.comments  = commentHelper.mergeComments(
        issue, replica,{
            comment ->
                comment.body =  "[" + replica.key
                    + "|https://wenergysoftware.atlassian.net/browse/"+replica.key+"]"
                    + ", "+comment.body
        }
    )


    However, I can get the following script to work (I'd just prefer to have the link):

    issue.comments  = commentHelper.mergeComments(
               issue, replica, {
                   comment ->
                     comment.body = replica.key+", "+comment.body
       }
    )

CommentAdd your comment...

1 answer

  1.  
    2
    1
    0

    I answered this myself using the https://groovyconsole.appspot.com. It was a syntax error. 

      CommentAdd your comment...