我想將jira問題轉換爲完成並將其與解決方案一起使用。Jira問題與分辨率問題
我正在使用POST /rest/api/2/issue/{issueIdOrKey}/transitions REST調用。根據文檔
樣品輸入:
{
"update": {
"comment": [
{
"add": {
"body": "Bug has been fixed."
}
}
]
},
"fields": {
"assignee": {
"name": "bob"
},
"resolution": {
"name": "Fixed"
}
},
"transition": {
"id": "5"
},
"historyMetadata": {
"type": "myplugin:type",
"description": "text description",
"descriptionKey": "plugin.changereason.i18.key",
"activityDescription": "text description",
"activityDescriptionKey": "plugin.activity.i18.key",
"actor": {
"id": "tony",
"displayName": "Tony",
"type": "mysystem-user",
"avatarUrl": "http://mysystem/avatar/tony.jpg",
"url": "http://mysystem/users/tony"
},
"generator": {
"id": "mysystem-1",
"type": "mysystem-application"
},
"cause": {
"id": "myevent",
"type": "mysystem-event"
},
"extraData": {
"keyvalue": "extra data",
"goes": "here"
}
}
}
現在我只是在田裏過渡和分辨率感興趣。我的樣品輸入:
{
"fields": {
"resolution": {
"name": "Done"
}
},
"transition": {
"id": "1"
}
}
我得到一個400,出現以下錯誤:
{
"errorMessages": [],
"errors": {
"resolution": "Field 'resolution' cannot be set. It is not on the appropriate screen, or unknown."
}
}
可有人請指出我我缺少的是什麼?
您的屏幕中是否有「完成」分辨率? –
是的,我確實有解決方法「完成」。新增了一張圖片。 @RobertoRusso –
ID 1是否與狀態「完成」匹配? –