我正在尝试通过 REST API 创建 JIRA,但是在尝试在 API 中添加“组件”字段时,它不起作用。
curl -vvv -D- -u $USERNAME:$PASSWORD -X POST --data '{"fields":{"project":{"key": "'"${PROJECT_KEY}"'"},"summary": "'"${PROJECT_SUMMARY}"'","assignee": {"name": "RAHUL"},{"update": {"components": [{"add": {"name": "DEV SUPPORT"}}]}},"description": "'"${PROJECT_DESCRIPTION}"'","issuetype": {"name": "Task"}}}' -H "Content-Type: application/json" https://jira.xyz.abc.com/rest/api/2/issue/
执行此命令时,出现以下错误。
{"errorMessages":[],"errors":{"components":"Field 'components' cannot be set. It is not on the appropriate screen, or unknown."}}
有人遇到过此类问题吗?