Python-Jira的更新status功能,遇到自定字段如何执行?

工作时需要完成一个更新jira状态的功能,但是我们的Jira更新状态是有自定字段

img


我尝试了

jira = JIRA(server=server, basic_auth=(username, password))
issue = jira.issue('new-123')
jira.transition_issue(issue, 21, customfield_12011={'id': 11763}, customfield_12120={'id': 11939},
                      customfield_12012={'value': 'TEST'})

这样去写,但是报错,报错信息如下:

jira.exceptions.JIRAError: JiraError HTTP 400 url: https://jira.hobot.cc:8443/rest/api/2/issue/MCP30-6460/transitions
    text: 无法找到有效的 “id” 或 “值” 在父母的选择对象。, 无法找到有效的 “id” 或 “值” 在父母的选择对象。, 必须为字符串
    
    response headers = {'X-AREQUESTID': '966x19070778x3', 'X-ASESSIONID': '1j8sgbs', 'X-XSS-Protection': '1; mode=block', 'X-Content-Type-Options': 'nosniff', 'X-Frame-Options': 'SAMEORIGIN', 'Content-Security-Policy': "frame-ancestors 'self'", 'X-ASEN': 'SEN-L14986632', 'X-Seraph-LoginReason': 'OK', 'X-AUSERNAME': 'jing03.wang', 'Cache-Control': 'no-cache, no-store, no-transform', 'Content-Encoding': 'gzip', 'Vary': 'User-Agent', 'Content-Type': 'application/json;charset=UTF-8', 'Transfer-Encoding': 'chunked', 'Date': 'Thu, 09 Dec 2021 08:06:57 GMT', 'Connection': 'close'}
    response text = {"errorMessages":[],"errors":{"customfield_12011":"无法找到有效的 “id” 或 “值” 在父母的选择对象。","customfield_12120":"无法找到有效的 “id” 或 “值” 在父母的选择对象。","customfield_12012":"必须为字符串"}}

请问有什么比较好的解决办法?