无法编辑 custom_field(Jira-Python)
Unable to edit custom_field(Jira-Python)
无法更新 Jira 问题的字段-python。
当我查看JSON中的原始数据时。它位于:
{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')
都给了我
response text = {"errorMessages":["Internal server error"],"errors":{}}
尝试在 Client.py
中添加 +“0000”
data['started'] = started.strftime("%Y-%m-%dT%H:%M:%S.000%z")+"+0000"
仍然没有解决问题。
请帮忙~!!
新发现,当我创建一个新问题时
issue= jira.create_issue(fields=root_dict)
而且我可以使用 issue.update 毫无问题地编辑这个问题对象
但是,当我使用
遇到现有问题时
issue = jira.issue('JRA-123')
使用 issue.update 编辑此问题出现内部错误。
你的更新部分有错别字 customfiled 应该是 customfield
issue.update({'customfiled_10000':'edited'})
无法更新 Jira 问题的字段-python。
当我查看JSON中的原始数据时。它位于:
{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')
都给了我
response text = {"errorMessages":["Internal server error"],"errors":{}}
尝试在 Client.py
中添加 +“0000”data['started'] = started.strftime("%Y-%m-%dT%H:%M:%S.000%z")+"+0000"
仍然没有解决问题。
请帮忙~!!
新发现,当我创建一个新问题时
issue= jira.create_issue(fields=root_dict)
而且我可以使用 issue.update 毫无问题地编辑这个问题对象
但是,当我使用
遇到现有问题时issue = jira.issue('JRA-123')
使用 issue.update 编辑此问题出现内部错误。
你的更新部分有错别字 customfiled 应该是 customfield
issue.update({'customfiled_10000':'edited'})