我正在尝试将 fixVersions 添加到 Jira 故事并使用 REST API 更改故事的状态。我收到请求调用错误:
信息:添加了正确的凭据
要求 1 - 设置修复版本:
网址:
身体:
{
"update": {
"fixVersions": [
{
"add": {
"name": "r1.0"
}
}
]
}
}
要求 2 将状态更新为已接受:
网址:
身体:
{
"update": {
"comment": [
{
"add": {
"body": "Comment body"
}
}
]
},
"fields": {},
"transition": {
"id": "41"
}
}
使用 PUT 方法:
错误:
{
"errorMessages": [
"Can not deserialize instance of java.util.ArrayList out of START_OBJECT token\n at [Source: com.quisapps.jira.fieldsecurity.filter.RequestWrapper$1@171c9b81; line: 3, column: 5] (through reference chain: com.atlassian.jira.rest.v2.issue.IssueUpdateBean[\"update\"])"
]
}
状态代码: 400 错误请求
使用 POST 方法:
状态代码: 204 无内容
我无法使用下面提到的链接:
面对以上问题我该如何处理?任何帮助将不胜感激...
我已经看到设置以下工作(但这取代了当前值):
{
"update": {
"fixVersions": [ { "set": [ {"name": "r1.0"} ] } ]
}
}
我仍在寻找一种方法来推动额外的价值。