Jira Python自定义字段

问题描述 投票:0回答:1

我有一个必须更新的自定义字段,并且不断收到此消息:

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}
python jira jira-rest-api
1个回答
0
投票

首先,请访问stackoverflow.com;-)

基于Jira Python client documentation,您需要通过以下方式更新问题字段:

issue.update(customfield_10201='0.0')

如果您进一步遇到麻烦,请指定以下内容:

  • 您使用Python中的哪个Jira API客户端?
  • 自定义字段的确切类型是什么?看起来自定义字段来自附加组件/应用。这是什么插件?
  • 您要连接到服务器还是Cloud Jira?
  • 您是否可以使用本地Jira API直接更新字段?例如。使用PostmanJira REST API Browser或其他类似的易于使用的API客户端?您可能需要检查official Jira API documentation如何更新Jira问题。
© www.soinside.com 2019 - 2024. All rights reserved.