我想将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是否与状态“完成”匹配? –