收到204回应,同时进行jira更新

问题描述

当我想在Jira实例上更新一个字段时,我不明白为什么收到204响应?你能帮我吗?

import requests


server = 'https://myjira.com'
endpoint = '/rest/api/2/issue/'
auth = ('login','password')

headers = {
    "Content-Type": "application/json;charset=UTF-8"
}
payload = {
    "update": {"customfield_15950": [{"set": "1999-03-07"}]}
}

respond = requests.put(
    f'{server}{endpoint}KEY-705',headers=headers,json=payload,auth=auth,)

print(respond,respond.text)

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)