Sum scripted field


Anyone know if it's possible to sum a scripted field (provided by Script Runner, defined as number)?

I tried...


... and issueFunction in aggregateExpression("My Total","MyScriptedFieldName.sum()")

didn't seem to work.

Thanks in advance.

1 answer

1 accepted

1 vote

It does not at the moment, I have created, although there are other ones that are similar.

Please vote/watch it, so you get a notification when it's done.

Thanks @Jamie Echlin (Adaptavist). I would vote and watch, but I signed up and got the following message when I tried to view: Don't know if you can fix that. Thanks.

This issue can't be viewed

The issue you're trying to view can't be displayed.
It may have been deleted or you don't have permission to view it right now.


@Jamie Echlin [Adaptavist]

I am thinking of a workaround... is it possible to update a 'regular' custom field inside a scripted field? That way, I can use the  aggregateExpression with the 'regular' custom field.

If that's possible, is there any code snippet you can direct me to?

Thanks again.

@Jamie Echlin [Adaptavist]

I answered my own question, yes, it's possible to update another custom field from a scripted field (at least my code seems to work). Thanks again.




Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Wednesday in Jira

Join our webinar: How 1B+ feature flag events helped us build the new Jira

Every time you release software, there's a bit of risk – that there's a bug, that something breaks, or that the feature doesn't resonate with customers. Feature flagging helps make high stakes s...

91 views 0 1
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you