Hello All, I used the code mentioned in the accepted answers to sum up the values from a custom field on the sub-tasks of type select list (single select). The aggregate will show up on the parent issue under a scripted field but I am getting following errors. Would appreciate any help to resolve this.
The error is exactly what it says it is - you are defining a variable with the same name as an existing variable (or class)
Just use a different name for the variable, for example
CustomField theCustomField = customFieldManager.getCustomFieldObjectByName("# of Scrum Teams");
Hi @Nidhi Gupta ,
try to replace that line with :
CustomField customField = customFieldManager.getCustomFieldObjectByName("# of Scrum Teams");
Please let me know if it works,
Fabio
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.
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.