How would I add the story on which a comment originated to the comment on the replica story?

Originally asked by Destri Weir on 15 February 2022 (original question)



Comments:

Destri Weir commented on 15 February 2022

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
}
)

Answer by Destri Weir on 16 February 2022

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


This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.