【问题标题】:Reading value from Jira custom field in JAVA从 JAVA 中的 Jira 自定义字段中读取值
【发布时间】:2019-02-20 11:09:00
【问题描述】:
Object object = issue.getCustomFieldValue.getCustomFieldObject("customfield_10002");

customfield_10002 代表 Jira 问题中的故事点。

如何在 Jira 中获取此自定义字段对象的值?

【问题讨论】:

    标签: java jira jira-plugin


    【解决方案1】:

    自定义字段对象和自定义字段值是不同的东西。这个例子是可行的。

    import com.atlassian.jira.component.ComponentAccessor
    Object storyPoints = issue.getCustomFieldValue(ComponentAccessor.getCustomFieldManager().getCustomFieldObject(10002))
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-15
      • 2015-01-17
      相关资源
      最近更新 更多