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?
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
thank you very much for the help
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Wow! I'm so glad it worked out!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Tiara Pequeno -- Welcome to the Atlassian Community!
Which of these are you trying to calculate:
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.