Jira Python 自定义字段
Jira Python Custom Field
我有一个必须更新的自定义字段,而且我不断收到此消息:
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}
首先,欢迎来到 whosebug.com;-)
基于Jira Python client documentation,您需要这样更新问题字段:
issue.update(customfield_10201='0.0')
如果您还有问题,请指定以下内容:
- 您在 Python 使用什么 Jira API 客户端?
- 自定义字段的确切类型是什么?看起来自定义字段来自 add-on/app。它是什么插件?
- 您连接的是 Server 还是 Cloud Jira?
- 是否可以使用原生 Jira 直接更新字段 API?例如。使用 Postman, Jira REST API Browser or other similar easy to use API client? You might want to check official Jira API documentation 如何更新 Jira 问题。
我有一个必须更新的自定义字段,而且我不断收到此消息:
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}
首先,欢迎来到 whosebug.com;-)
基于Jira Python client documentation,您需要这样更新问题字段:
issue.update(customfield_10201='0.0')
如果您还有问题,请指定以下内容:
- 您在 Python 使用什么 Jira API 客户端?
- 自定义字段的确切类型是什么?看起来自定义字段来自 add-on/app。它是什么插件?
- 您连接的是 Server 还是 Cloud Jira?
- 是否可以使用原生 Jira 直接更新字段 API?例如。使用 Postman, Jira REST API Browser or other similar easy to use API client? You might want to check official Jira API documentation 如何更新 Jira 问题。