通过Python suds在JIRA中创建问题时设置assignee字段

2024-09-27 07:18:32 发布

您现在位置:Python中文网/ 问答频道 /正文

使用JIRA版本4.2。对于Python2.7和SudS0.4,如何创建assignee字段集的问题?下面的代码忽略了assignee字段。

new_issue = client.service.createIssue(auth, {
            'project': 'NAHLP',
            # issue_type = Incident Report.
            'type': '11',
            'assignee': 'assignee_username',
            'priority': '2',
            'summary': 'summary',
            'description': 'description',
            'customFieldValues': [
                # Reporter Location = NA.
                {'customfieldId':'customfield_10019', 'values':['10011']},
                ]
            })

我知道你可以用一个受让人来更新问题(见我的答案),但我想在创建问题时分配它。这可能吗?

注意:我们所有的用户名都是用户的电子邮件地址,包含“@”和“.”符号。


Tags: 代码版本projectclientauthnewtypeservice

热门问题