Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Server Scriptrunner - how to prevent dupes synching comments

Jon Starbird
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 17, 2019

I have two projects, service desk project and dev project, that I am attempting to have comments sync between Cloned issues for these projects. I have it setup with Two listeners, one for each project, and then having it sync on the comment events. 

However, they end up triggering each other. 

How can I prevent that? 

1 answer

1 accepted

0 votes
Answer accepted
Jon Starbird
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
January 17, 2019

Answered myself. 

Just need to add the corresponding Issue Key to the beginning of each new comment that is synched, then in the each Listener have it ignore new comments with the the key from the other project in the comment body.

Suggest an answer

Log in or Sign up to answer