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).
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
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?
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 ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
*for informaiton, our members put a comment once a week as a report on different tickets (subjects).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe use a smartvalue to dynamically capture and "refresh" the list of all comments within this field ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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".
- 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.
Am I missing some trigger or action that would be more suitable ?
Thank you John !
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.