Python-Jira 创建问题给出屏幕错误

Python-Jira create issue giving Screen error

我在 Python 中使用 Jira 库来创建 Jira 问题,但出现以下错误:

jira.exceptions.JIRAError: JiraError HTTP 400

text: Field 'Component/s' cannot be set. It is not on the appropriate screen, or unknown.

url: http://jira.corp.inmobi.com/rest/api/2/issue

response headers = {'X-AUSERNAME': 'noc', 'X-ASEN': 'SEN-2505611', 'X-Content-Type-Options': 'nosniff', 'Content-Encoding': 'gzip', 'Transfer-Encoding': 'chunked', 'X-Seraph-LoginReason': 'OK', 'Vary': 'User-Agent', 'X-AREQUESTID': '125x24693491x2', 'X-ASESSIONID': '1tjvpeo', 'Connection': 'close', 'Cache-Control': 'no-cache, no-store, no-transform', 'Date': 'Sun, 29 May 2016 02:05:05 GMT', 'Server': 'Apache-Coyote/1.1', 'Content-Type': 'application/json;charset=UTF-8'}

response text = {"errorMessages":[],"errors":{"Component/s":"Field 'Component/s' cannot be set. It is not on the appropriate screen, or unknown."}}

谁能帮我整理一下?


Jira 抱怨 'Component\\s'.

中意外的反斜杠

改为:

'components: [{'name' :"ABC"}]'

它应该可以解决您的问题(双关语)。