使用 jira-python 标记/取消标记 JIRA 问题时出现问题



我几乎每天都使用Python JIRA API包装器来记录时间,添加注释和转换问题。最近,我的团队决定用"障碍"标志替换"路障"状态。我的问题是我无法从问题 (https://jira.atlassian.com/browse/JSWSERVER-16346( 中标记/取消标记问题。

以下用于更新customfield_10500(标志(的代码不起作用:

jira = JIRA(options=options, basic_auth=(os.getenv('user'), os.getenv('pass')))
i = jira.issue('BIS-9')
i.update(fields={
'customfield_10500' : {'value' : 'Impediment'}
})

错误

JIRAError: JiraError HTTP 400 url
response text = {"errorMessages":[],"errors":{"customfield_10500":"Field 'customfield_10500' cannot be set. It is not on the appropriate screen, or unknown."}}

我知道该字段必须在看板中设置,但我不知道如何使用 Python 包装器执行此操作。

有没有办法做到这一点?

我找到了这个,但不知道如何翻译它。

如果要通过 RestApi 更新自定义字段,则应将自定义字段添加到编辑模式屏幕中。

我相信这就是为什么它显示上述错误的原因

最新更新