The Exalate team will be on holiday for the coming days - returning Jan 4
Enjoy & stay safe

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Introduction



You are utilizing Exalate to integrate Jira, aiming to avoid syncing internal comments, but you've encountered an issue where attachments added to these comments are still being synced.

...

Code Block
languagegroovy
titleOutgoing Sync Jira
linenumberstrue
replica.attachments = issue.attachments.each {
  attachment ->

    issue.comments.each {
      comment ->
        if (comment.body.contains(attachment.filename))
          attachment.internal = comment.internal
    }
}

replica.comments = issue.comments.findAll {
  !it.internal
}
replica.attachments = issue.attachments.findAll {
  !it.internal
}

Video


Widget Connector
urlhttp://youtube.com/watch?v=OKjSkxfl468

...