通过 API 创建 Jira 票证时出错(已提交“优先级”) - 票证无论如何都会创建

问题描述 投票:0回答:1

通过 REST API 在具有特定优先级(默认内置“优先级”字段,其他优先级工作正常)的 Jira(v8.20.8,在 Docker 上运行)中创建票证,实际上正在创建票证,但出现以下错误:

{
    "errorMessages": [
        "We can't create this issue for you right now, it could be due to unsupported content you've entered into one or more of the issue fields. If this situation persists, contact your administrator as they'll be able to access more specific information in the log file."
    ],
    "errors": {}
}

而不是像

这样的正确答案
{
    "id": "<id>",
    "key": "<ticketNumber>",
    "self": "https://<JiraServer>/jira/rest/api/latest/issue/<id>"
}

所以我创建票证的服务没有收到返回的票证 ID/号码,并且失败。

我仔细检查了一下,我使用的值存在。事实上,几天前它工作得很好,但我没有发现任何影响它的更改审核日志。仅对于某些特定值,什么会导致此类失败?

jira jira-rest-api
1个回答
0
投票

按名称优先级的 Json 语法

"priority": { "name": "P01" }
或者 按 ID 优先级的 Json 语法
"priority": { "id": 10000 }

确保您输入的值对于特定项目存在。如果问题仍然存在,请联系您的 Jira 管理员以获取更详细的日志和帮助。

© www.soinside.com 2019 - 2024. All rights reserved.