无法编辑custom_field(Jira-Python) [英] Unable to edit custom_field(Jira-Python)

查看:471
本文介绍了无法编辑custom_field(Jira-Python)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

无法为Jira-python中的问题更新字段.

Unable to update fields for an issue in Jira-python.

当我查看JSON中的原始数据时.在下面:

When I look at the raw data in JSON. It is under:

{fields:{'customfield_10000':'some text'}

但是当我尝试时:

issue.update(fields={'customfiled_10000':'edited'})

issue.update({'customfiled_10000':'edited'})

issue.update({fields:{'customfiled_10000':'edited'}})

issue.update(customfiled_10000='edited')

所有人都给了我

响应文本= {"errorMessages":[内部服务器错误"],错误":{}}

response text = {"errorMessages":["Internal server error"],"errors":{}}

尝试在Client.py中添加+"0000"

Tried added +"0000" in Client.py

data['started'] = started.strftime("%Y-%m-%dT%H:%M:%S.000%z")+"+0000" 仍然无法解决问题. 请帮忙〜!!

data['started'] = started.strftime("%Y-%m-%dT%H:%M:%S.000%z")+"+0000" still not fixing the issue. Please Help~!!

新发现,当我创建新问题

issue= jira.create_issue(fields=root_dict)

并且我可以使用issue.update毫无问题地编辑此问题

and i can edit this issue oject using issue.update with no problem

但是,当我使用来解决现有问题时

However, when I get the existing issue using

issue = jira.issue('JRA-123')

使用issue.update编辑此问题会给我内部错误.

editing this issue using issue.update gives me internal error.

推荐答案

您在自定义归档的更新部分中有错字,应该是 e ld

You have a typo in the update part customfiled should be customfield

issue.update({'customfiled_10000':'edited'})

这篇关于无法编辑custom_field(Jira-Python)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆