如何获取故事点估计 Jira插件开发

How to get story point estimate Jira plugin development

我正在开发一个 Jira 报告插件。我已经收集了一个问题列表,我需要以某种方式找到每个问题的初始故事点估计。 Issue class 中有一个方法名为 getEstimate() 但它 returns 即使对于估计的任务也是空的,我认为这个方法与时间估计有关。有谁知道我该怎么做?

非常感谢!

PS:我正在使用 Java API,到目前为止我所拥有的所有信息都是使用 greenhopper classes 收集的。

您可能需要使用 issue.getCustomFieldValue(customField) 函数来获取该信息,因为 Jira Software 通过创建自定义字段在 Jira Core 之上运行。

要识别相关的 customField 对象,您可以遍历 fieldManager.getAvailableCustomFields and identify the field by it's name Story point estimate by checking the value of customField.getFieldName 返回的集合,或者检查它的类型。

Ref