Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Deleted user
0 / 0 points
badges earned

Your Points Tracker
  • Global
  • Feed

Badge for your thoughts?

You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.

Join group
Give the gift of kudos
You have 0 kudos available to give
Who do you want to recognize?
Why do you want to recognize them?
Great job appreciating your peers!
Check back soon to give more kudos.

Past Kudos Given
No kudos given
You haven't given any kudos yet. Share the love above and you'll see it here.

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Sum up custom field values with ScriptRunner

I have a custom field, Credits used, at the issue level.  I want to sum this at the project level, and using ScriptRunner's aggregateExpression function I think I can do something like this:


 project in projectMatch() and issueFunction in aggregateExpression("Total Credits Used", "Creditsused.sum()")


Is the space in the field name going to cause problems?  If so, do I need to create a new field with no spaces (Creditsused)?  Enclose the field name in single quotes in the function?

 project in projectMatch() and issueFunction in aggregateExpression("Total Credits Used", "'Credits used'.sum()")

1 answer

Hi Chris,

I can confirm that it is not possible to sum up values in ScritpRunner for Jira Cloud currently using JQL as the aggregateExpression() JQL function is only available in the Server version of the add on.

You can see all the JQL functions which the server version  provides inside of the docuemntation page located here.

The reason that we are unable to provide this functionality in Jira Cloud is due to the differences in the frameworks between Jira Server and Jira Cloud which means that no API exists to allow us to provide this functionality inside of Jira Cloud.

You can find further information on the differences between the Server and Cloud versions of the plugins inside of the documentation page located here.

If this response has answered your question can you please mark it as accepted so that other users can see it is correct when searching for similar answers.



Is there any other way to do this in Jra Cloud using ScriptRunner?

Hi Chris,

Thank you for your response.

Unfortanetly there is no other way with ScriptRunner to sum up all values for a field for every issue in a project as you would need to do this using JQL and ScriptRunner for Jira Cloud does not provide any JQL functions to achieve this requirement.



Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Jira Service Management

JSM June Challenge #2: Share how your business teams became ITSM rockstars

For JSM June Challenge #2, share how your non-technical teams like HR, legal, marketing, finance, and beyond started using Jira Service Management! Tell us: Did they ask to start using it or...

324 views 9 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you