我目前正試圖通過API在JIRA中創建一個問題,並且遇到了一個我無法解決的問題。JIRA API組件名稱無效
我使用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」作爲組件。
您是否嘗試使用組件ID代替? – Robert