Forums

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

Help with formula: calculating comment average over the last 20 days

Tiara Pequeno
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 6, 2025

Hi everyone!
I'm trying to create an automation that calculates the average number of comments over the last 20 days for all issues that have data in the custom field “Comentários 20 dias [Paragraph]”, but I’m getting the formula wrong.
Could anyone please tell me the correct way to calculate this average using smart values and save the result into a numeric field?

2 answers

1 accepted

2 votes
Answer accepted
Anthony Morais
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 Leaders.
November 6, 2025

Hi @Tiara Pequeno 

Try editing your custom field using the following formula and let me know if it works:

{{#=}}{{lookupIssues.size}} / 20 * 100{{/}}


Regards,
Anthony

Tiara Pequeno
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
November 6, 2025

thank you very much for the help

Like John Funk likes this
Anthony Morais
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 Leaders.
November 6, 2025

Wow! I'm so glad it worked out!

Like John Funk likes this
0 votes
Bill Sheboy
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 Leaders.
November 6, 2025

Hi @Tiara Pequeno -- Welcome to the Atlassian Community!

Which of these are you trying to calculate:

  1. the average number of work items created over the last 20 days, or
  2. the average number of comments added to a set of work items over the last 20 days

If if is the second one, please note the comments are list of things within the list of work items, and that will require additional handling to iterate them, filter by their create date, and then sum to determine the average.

 

Kind regards,
Bill

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events