1

Python は初めてで、JIRA で新しい問題を作成する簡単なスクリプトを作成しようとしています。

私のコードで何が問題なのかわかりません。

from jira.client import JIRA


options={'server': 'https://jira.my_jira.com'}

jira=JIRA(options,basic_auth=('user', 'pass'))


root_dict = {

'project' : { 'key': 'project_name' },

'summary' : 'Test auto created issue',

'description' : 'Ignore this. will be deleted shortly',

'issuetype' : { 'name' : 'Task' },

}

my_issue= jira.create_issue(fields=root_dict)

エラーは次のとおりです

JIRA エラー: HTTP 400: 「アカウントが必要です。」 https://jira.my_jira.com/rest/api/2/issue

誰かが何が悪いのかアドバイスできますか?

4

0 に答える 0