Search code examples
javajirajira-plugingreenhopper

How to get story point estimate Jira plugin development


I am developing a Jira report plugin. I have gathered a list of Issues and I need to find somehow the initial storypoint estimate for each of them. There is a method in the Issue class named getEstimate() but it returns null even for estimated tasks, and I think that this method is rather related to time estimation. Does anyone know how should I do that?

Thank you very much!

PS: I am using Java API, all information that I have so far was gathered using greenhopper classes.


Solution

  • You will probably need to use the issue.getCustomFieldValue(customField) function to get that information since Jira Software works on top of Jira Core by creating custom fields.

    To identify the relevant customField object, you can loop through the set returned by fieldManager.getAvailableCustomFields and identify the field by it's name Story point estimate by checking the value of customField.getFieldName or maybe by checking it's type.

    Ref