我有一个必须更新的自定义字段,并且不断收到此消息:
response text = {"errorMessages":["Internal server error"],"errors":{}}
此行之后:
issue.update({"customfield_10201": '0.0'})
尽管我除了简单的字符串之外还放置了其他字符:
issue.update({"customfield_10201": 0.0})
我收到此消息:
response text = {"errorMessages":["Internal server error"],"errors":{"customfield_10201":"data was not a string"}}
这是基于jira API的字段类型:
{"required":false,"schema":{"type":"any","custom":"SMTH.jira.plugins.componentversionmanager:elementversioncft","customId":10201}
首先,请访问stackoverflow.com;-)
基于Jira Python client documentation,您需要通过以下方式更新问题字段:
issue.update(customfield_10201='0.0')
如果您进一步遇到麻烦,请指定以下内容: