Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,367,189
Community Members
 
Community Events
168
Community Groups

Aggregate comments from Epics and add them to their Initiative

Hi team,

Our structure is Initiative > Epics > Tasks > sub-tasks

We are trying to get the last comment from all the epics under an Initiative, aggregate them and add them as last comment to the parent link (their Initiative):

Epic_N_1
  Comment 1

Epic_N_2
  Comment 2

Epic_N_3
  Comment 3

Results:

Initiative_N
  Comment 1
  Comment 2
  Comment 3

Where:
Initiative_N is the parent link of Epic_N_1 & Epic_N_2 & Epic_N_3

Is this possible?
If so, please let us know how to do it

2 answers

1 accepted

2 votes
Answer accepted

Hello @Mohamed Tafifet ,

David from ALM Works here. Welcome to the Community!

When you say your "structure", are you referring to our product, Structure - Flexible Jira Project Management?

If so, we just recently introduced the ability to use an Attribute to Issue Field Effector to add a comment (8.1.1).  You would want to use a formula like ARRAY#children{last_comment} as your attribute.

Looking forward to your feedback!

Best,
David

0 votes
Rik de Valk Community Leader Aug 30, 2022

Hi @Mohamed Tafifet ,

If you have the app Jira Misc Workflow Extensions or ScriptRunner you can achieve this.

With JMWE you can create an event-based action.

  • Event: issue commented
  • Scope: the projects and issue types you want to have in scope
  • Post function: Comment related issues
    • Which issues: parent issue of the the current issue in the Portfolio hierarchy
    • Comment type: Groovy expression
    • Comment text: "(" + issue.get("issuekey") + ") " + issue.get("comment")?.last()?.body

I've added the "(" + issue.get("issuekey") + ") " + part so that it also posts the issue key of the Epic on which the Comment was posted.

@Rik de Valk thanks for the answer, unfortunately we don't have those extensions in the company, but thanks for the support

Like Rik de Valk likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events