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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.