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."
}
是規定就不能更改嗎.但是官方檔案上面明確的倆個例子都不能更改
轉載請註明出處,本文鏈接:https://www.uj5u.com/qiye/31729.html
標籤:Atlassian技術
