private static DefaultIssueComment copyComment ( String issueKey , DefaultIssueComment c ) { DefaultIssueComment comment = new DefaultIssueComment ( ) ; comment . setIssueKey ( issueKey ) ; comment . setKey ( Uuids . create ( ) ) ; comment . setUserUuid ( c . userUuid ( ) ) ; comment . setMarkdownText ( c . markdownText ( ) ) ; comment . setCreatedAt ( c . createdAt ( ) ) . setUpdatedAt ( c . updatedAt ( ) ) ; comment . setNew ( true ) ; return comment ; }
Copy a comment from another issue