JIRA Python 设置级联 Select 值

JIRA Python Setting Cascading Select Values

我正在使用 jira-python 库在 JIRA 中创建问题。但是我无法获得设置级联 Select 值的正确语法。下面的代码创建了一个问题,并且适用于级联 select 中的第一个(父)select,但不适用于第二个(子)。谁能告诉我我错过了什么?

from jira import JIRA
jira = JIRA(options,basic_auth=('auth_email','auth_pw'))

issue_dict = {
        'project': {'key': 'AT'}, #key for project
        'summary': 'Summary Message',
        'description': 'Not important',
        'issuetype': {'name': 'Bug'},
        'customfield_10207':{'value': 'test val2'}, #Updates first cascading select
        'customfield_10207+1':{'value': 'test test2'}, #Fails
    }
    new_issue = jira.create_issue(fields=issue_dict)

(customfield_10207, customfield_10207+1是级联select)。问题出在 customfield_10207+1 上,我希望它对应于第二个 select 列表。

查看一些 atlassian forum docs 您需要执行以下操作:

{
    "update" : {
        "customfield_11272" : [{"set" : {"value" : "External Customer (Worst)","child": {"value":"Production"}}}]
    }
}

显然 +: 语法不起作用 :(

更新:

添加实际解决方案:

issue_dict = { 'project': {'key': 'AT'}, 'customfield_10207 : {"value" : "test val2","child": {"value":"test test2"}}, }