更新/修改JIRA问题标签时遇到问题。
我已尝试过jira模块文档中的以下两种变体:
issue.update(labels=['AAA', 'BBB'])
OR
issue.fields.labels.append(u'new_text')
issue.update(fields={"labels": issue.fields.labels})
在最后一个例子中,我收到了这个错误:
JIRAError: JiraError HTTP 400
text: Field 'labels' cannot be set. It is not on the appropriate screen, or unknown.
url: https://jira.XXXXXXXXXX.com/rest/api/2/issue/XXXXXXXX
response text = {"errorMessages":[],"errors":{"labels":"Field 'labels'
cannot be set. It is not on the appropriate screen, or unknown."}}
有人有任何建议吗?
规格:
Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32
jira (0.50)
'rest_api_version': u'2'