I have a custom field (Number) in any issues , so i would like to get the sum of this custom field for all issues.
Regards
Where would you like to get that sum? On a dashboard gadget? From the REST API? Somewhere else?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Scripted fields, like all custom fields, are associated with issues, and therefore calculated for each issue. Here, you want a sum across all issues. You want the same sum to be displayed on every issue?
Also, it'll be a costly operation which will be done for each issue view or modification. Not sure that's a great idea...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@David Fischer i have a custom field inside every issue , i want to get the sum of thees fields for all issues.
fo each issue i wana to get the value of the custom field and add it . to get finally the sum.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I understand that. But the Scripted field will be an additional custom field whose value will be calculated every time an issue is displayed or updated - and it will sum up the values of the source custom field over every issue. So the same sum will be calculated for every issue.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Also, you need to know that the value of Scripted fields is not stored in the Jira database. It's calculated on the fly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@David Fischer i will use a listener for that just I need the code how to loop all issues to get the value of custom field for every issues and sum up .
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.