Forums

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

Aggregate comments from Epics and add them to their Initiative

Mohamed Tafifet
August 30, 2022

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
David Niro
Atlassian Partner
August 31, 2022

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

Mohamed Tafifet
September 3, 2022

@David Niro , thanks a lot that works

0 votes
Rik de Valk _Brainboss_
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 Champions.
August 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.

Mohamed Tafifet
September 3, 2022

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

Like Rik de Valk _Brainboss_ likes this

Suggest an answer

Log in or Sign up to answer