[英]Reading value from Jira custom field in JAVA
Object object = issue.getCustomFieldValue.getCustomFieldObject("customfield_10002");
The customfield_10002
represents Story points in Jira issue. customfield_10002
代表Jira问题中的故事点。
How will I get the value for this custom field object in Jira? 如何在Jira中获取此自定义字段对象的值?
Custom field object and custom field value is different things. 自定义字段对象和自定义字段值是不同的东西。 This example will be work. 这个例子是可行的。
import com.atlassian.jira.component.ComponentAccessor
Object storyPoints = issue.getCustomFieldValue(ComponentAccessor.getCustomFieldManager().getCustomFieldObject(10002))
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.