New comments inheritance from subtask to parent task

Sebastian Richards Romero March 30, 2023

I'm trying to build an automation that, when commented in a subtask, copies it to the parent task. However, with what I've found in the forums and documentation, I only manage to get the first comment copied, but subsequent ones are no longer copied.

image.png

1 answer

1 accepted

1 vote
Answer accepted
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 30, 2023

Hi @Sebastian Richards Romero - The way you have your rule configured as a manual trigger and copying the last comment, you should always get whatever the last comment is.  However, you may want to consider something more automated like this:

  • TRIGGER: Issue Commented
  • CONDITION: Issue Type = Sub-Task
  • BRANCH (Parent)
    • ACTION: Add Comment:
      • By *{{comment.author.displayName}}* at {{created.jqlDateTime}} on sub-Task {{triggerIssue}}
        {{comment.body}}

This should ensure that the parent issue is always inheriting the comments of its children

Sebastian Richards Romero April 3, 2023

Hello @Mark Segall 

I've tried something like that.

I changed the trigger to Manual, because i though it could help and it kind of did copying every comment into a new one.

The problem with the one you've pointed out, is that the first comment is copied but the next ones doen't trigger the rule and the rule log throw this:

2.png
I'll be waiting for your answer.
Thank you!
Mark Segall
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
April 3, 2023

Thanks for the audit log... That clears it up.

By default, when you use the Add Comment action, it checks the box:

Prevent duplicates by only adding this comment once to a particular issue

Uncheck this and it should run each time.

Sebastian Richards Romero April 3, 2023

It worked! Thank you!

Like Mark Segall likes this

Suggest an answer

Log in or Sign up to answer