且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Jira中的REST api修改自定义字段名称后,CustomFieldManager没有获得自定义字段

更新时间:2022-11-01 09:15:38

尝试,获取值。当您获得customfield对象时,您将获得CF本身,而不是任何情况下该自定义字段的值。因此,您将获得自定义字段,然后获得针对特定问题的值:

try, getting the value. When you get the customfield object, you are getting the CF itself, not the value of that custom field at any issue. So, you get the custom field, and then the value of it for a specific issue:

cfManager.getCustomFieldObjectByName(modByWhomCustomFieldName).getValue(yourIssue)

**编辑:
对于显示名称的问题,请尝试使用用户对象上的 getDisplayName()方法。
的问候

** For the name displaying problem, try using the getDisplayName() method on user object. Regards