Forums

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

Sync comments between subtasks

Fariz Aliverdiyev
Contributor
March 2, 2022

Good day, everyone. 

I have issues with synchronization of comments in subtasks. Synchronization is done with the help of Automation Rules(JWT) plugin.

For example, three subtasks are created during transition - subtask1, subtask2 and subtask3. When adding comment in subtask2, this comment is being automatically added in subtask1 and subtask2, but the same comment is being added in subtask2 again, i.e, there are two same comments in subtasks2. 

Please, help in solving this problem. 

Automation rule structure: 

Screenshot_10.png

Thank you in advance.

1 answer

1 accepted

0 votes
Answer accepted
Sergio García-Consuegra _Decadis AG_
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.
March 2, 2022

Hi @Fariz Aliverdiyev ,

Thank you for your request!

I was able to reproduce your problem and I contacted our development team so we can implement a fix for that problem. Unfortunately, I can't give you a specific date about when it will be fixed and released, but I can offer you a workaround for this problem!


Change the mode of your "Issue selector" from "Sibling sub-tasks" to "Issue list expression" , and use the following expression:

siblingSubtasks()

This expression will obtain all the sibling sub-tasks, excluding the current sub-task that was just commented and triggered the Automation Rule. Just make this change and it should work as expected.

Please, let us know if the provided solution worked!

Best regards,
Sergio

Fariz Aliverdiyev
Contributor
March 4, 2022

Hi @Sergio García-Consuegra _Decadis AG_ , 

Sorry for late answer. There was a problem with sync of comments between subtasks by your method. When adding comment in subtask1, for example, previous comments in subtask 2 and subtask 3 are edited to comment which was added in subtask1. 

Can it be that the problem is in Update Field Action or Issue Selector expression? 

Screenshot_11.png

Thank you in advance.

Sergio García-Consuegra _Decadis AG_
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.
March 8, 2022

Hi @Fariz Aliverdiyev ,

In this case, it seems you are updating the last comment of the sub-tasks, instead of adding a new comment.

You should replace your "Update field" action and use "Add comment" action, selecting as value the Last comment (trigger)

Please, let us know if after making this change it works as expected!

Best regards,
Sergio

Fariz Aliverdiyev
Contributor
March 9, 2022

@Sergio García-Consuegra _Decadis AG_ thanks a lot!

I didn't notice...

Suggest an answer

Log in or Sign up to answer