Sync comments that are restricted to project roles

Originally asked by Peter Pesta on 24 February 2021 (original question)


Dear exalate team,

I´d like to ask you regarding the synchronization of comments that are restricted to particular project roles.

The synchronization is between two Jira instances, in the source instance, users can add comments and set the visibility of the comment to a project role. “Internal” comments shouldn´t be synced.

System is Jira Core.

Thank you,

Best regards,

Peter Pesta


Answer by Ariel Aguilar on 24 February 2021

Hi Peter,

Thanks for raising this community question!

With Exalate, you’ll be able to manage the visibility of the comments you send or receive, whether it be by user Role Level, Group Level, or Internal/Public in the case of Service Desk issues.

Here are some examples:

Send only the comments that are not for a specific Role Level:

Outgoing Sync:

replica.comments = issue.comments.findAll { it.roleLevel != "dev" }

Send only the comments that are not for a specific Group Level:

Outgoing Sync:

replica.comments = issue.comments.findAll { it.groupLevel != "jira-developers" }

Thanks,

Ariel