Forums

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

How to copy comments from multiple tickets to a parent ticket field ?

Markova Ivana April 14, 2025

Hello everyone,

 

In JIRA Automation I have a rule about copying a new comment from an issue (A) to a designated parent issue's field (B).

Capture1.PNG

It works fine, but when 2 (or more) commented issues have the same parent, I only see 1 of the comments (from the issue commented most recently).


I want to append/concatenate comments from multiples issues that have the same parent and display them in the designated field.

Can someone help me?

Thanks

1 answer

0 votes
John Funk
Community Champion
April 14, 2025

Hi Markova - Welcome to the Atlassian Community!

Your rule fires when a comment is added to an issue. Therefore it will copy only that comment up because that is the one that triggered the rule execution. The same will happen for the other children when Comments are added on them. 

Your questions how to copy the comments from other children. Why would you want to do that? For one, the comments would already be there because the rule would have fired for those children earlier when a comment was added. And two, how would it know what comments to copy from the other children? 

Markova Ivana April 15, 2025

Hi, thanks for taking the time to respond and for your helpful question :)

 

In fact in Confluence I display the parent ticket (=1 functional perimeter in our team) with the field containing the comment.

 

I want to dynamically report on different subjects (children tickets) within this parent.

So each time a new report (comment) is added to a ticket, I want the comment to be added to the list of comments within this perimeter, so to papend comments.

 

Maybe not use "last" in {{triggerIssue.comment.last.body}}, as it takes the last one ? So the last commented issue within the parent ?

Markova Ivana April 15, 2025

*for informaiton, our members put a comment once a week as a report on different tickets (subjects).

Markova Ivana April 15, 2025

Maybe use a smartvalue to dynamically capture and "refresh" the list of all comments within this field ?

John Funk
Community Champion
April 15, 2025

I think what I would do is create it as a Manual trigger and have your team members execute the trigger on the comments they want to, which would copy up to the parent issue into the desired Field, adding to the values already there. 

Markova Ivana April 25, 2025

Thank you for the idea. I agree in theory, but I struggle with the practicality of it.

Could you give me a precise example for the action that will copy up to the parent issue into the desired Field, adding to the values already there ?

__________________________________________________________________________

Because if I choose the action "edit issue fields", I can either :

- copy a value from 1 field of my trigger issue to the desired field of the parent issue - problem is, I don't have "comment" in the list from "fields to copy value from".

desired field.PNG

copy value from.PNG

- set value so I can give what I would like to have from the comment (code below) - problem is, if you set value, it resets it each time a trigger a new comment.

set value.PNG

Am I missing some trigger or action that would be more suitable ?

Thank you John !

Suggest an answer

Log in or Sign up to answer