jira api问题.研究好几天了
API:Do transition
POST /rest/api/2/issue/{issueIdOrKey}/transitions
dec:
Perform a transition on an issue. When performing the transition you can update or set other issue fields.
The fields that can be set on transtion, in either the fields parameter or the update parameter can be determined using the /rest/api/2/issue/{issueIdOrKey}/transitions?expand=transitions.fields resource. If a field is not configured to appear on the transition screen, then it will not be in the transition metadata, and a field validation error will occur if it is submitted.
Example:
fields": {
"assignee": {
"name": "bob"
},
"resolution": {
"name": "Fixed"
}
},
按照例子.去调用jira 的 api.但是respose:
"errors": {
"resolution": "Field 'resolution' cannot be set. It is not on the appropriate screen, or unknown."
}
是规定就不能更改吗.但是官方文档上面明确的俩个例子都不能更改