0

I am using the jira-python library to create an issue in JIRA. However I cannot get the syntax right for setting Cascading Select values. The code below creates an issue and works for the first(parent) select in the cascading select but not the second (child). Can anyone tell me what I'm missing?

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 is the cascading select). Problem is with customfield_10207+1 which I expected to correspond to the second select list.

4

1 回答 1

1

查看一些atlassian 论坛文档,您需要执行以下操作:

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

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

更新:

添加实际解决方案:

issue_dict = { 'project': {'key': 'AT'}, 'customfield_10207 : {"value" : "test val2","child": {"value":"test test2"}}, }
于 2017-02-21T18:55:18.023 回答