Unable to do statistics for the Green Hopper Field "Sprint" inside the "Two Dimentional Gadget"

Hi,

I need to include the GreenHopper field "Sprint" to the list of values in XAxis and YAxis in the Two Dimentional Gadget to be able to get statistics on it.

After checking the code of this gadget and more specifically in the function Map<String, String> getValues() in StatisticTypesResource.Java of this gadget, I found below:

final List<CustomField> customFieldObjects = customFieldManager.getCustomFieldObjects();

for (CustomField customField : customFieldObjects)

{

if (customField.getCustomFieldSearcher() instanceof CustomFieldStattable)

{

allValues.put(customField.getId(), i18n.getText(customField.getName()));

}

}

We are adding all custom fields where the condition (customField.getCustomFieldSearcher() instanceof CustomFieldStattable) is satisfied.

For the "Sprint" field, this condition is not satisfied, that's why, it doesn't appear inside the list.

Is there a way to force enabling this property to the "Sprint" so , the condition will be met in that case?

Thanks,

Rosy

1 answer

0 vote

That's not really a property, the "stattable" thing is a set of functions that apply to known-length lists of options. Sprints are not a known-length list (the list can grow rapidly and arbitrarily)

The usual workaround for non-stattable fields is to script or code a field that duplicates the data into a stattable field (although these can fall over when the list gets a bit long, and it's a disaster when it's done for text fields)

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
Published Thursday in Jira

Meet the AUG leaders of Northern Virginia

@Rachel Wright (Jira Genie), @Billy Poggi (AUG NOVA, DC), and @Dana Jansen (Confluence Queen) are just some of the folks that lead one of the world's most active Atlassian User Group (AUG)....

125 views 4 9
Read article

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