現在、API を介して JIRA 内で問題を作成しようとしていますが、修正する手がかりがない問題に遭遇しています。
curl コマンドを使用してコンポーネントを見つけたところ、次の結果が得られました。
"components":[{"self":"https://jira-server/rest/api/2/component/18458","id":"18458","name":"JIRA","description":"#"},{"self":"https://jira-server/rest/api/2/component/18463","id":"18463","name":"JIRA"}]
次のコマンドで python-JIRA API を使用してスクリプトを実行すると:
new_issue = jira.create_issue(project='IT', summary='New issue from jira-python', description='look here', issuetype={'name': 'Task'}, components = [{'name': "JIRA"}])
次のエラー メッセージが表示されます。
response text = {"errorMessages":[],"errors":{"components":"Component name 'JIRA' is not valid"}}
誰かが私が間違っていることを正確に教えてもらえますか? 私は 100% テスト問題を手動で作成し、「JIRA」をコンポーネントとして選択したため、「JIRA」はコンポーネントです。