Execute workflow for issue
POST/project/issues/:issueID
Execute workflow for issue.
Use this operation to update the issue status. First query the
executable workflows by using
GET /project/issues/{issueID}?action=executableWorkflow, then pass the
selected workflow id to this operation. The general update-issue
operation does not update the issue status.
Business validation failures are returned with HTTP 200 and result: FAIL.
Check result, errorCode, and errorMsg to determine whether the workflow succeeded.
A single related-issue field supports at most 5000 effective related issues.
Exceeding this limit rejects the transition with errorCode: LimitExceeded and
errorMsg: LimitExceeded relatedTask; the limit and rejection behavior are unchanged.
When validation reports multiple business reasons, one stable primary reason is returned:
issues are ordered by ID, fields within each issue by field ID, followed by the issue-level reason.
Unknown errors, server failures, and hidden plugin errors still return a generic server error.
History
| Version | Changes |
|---|---|
| v3.14.117, v3.15.26 | Added in: v3.14.117, v3.15.26 |
Request
Path Parameters
The issue ID
Query Parameters
- action: Actions on issue,support
executeWorkflow.
The team ID
- application/json
Body
required
The issue workflow information to update
Array [
]
Array [
]
Array [
]
Array [
]
Array [
]
Possible values: non-empty and <= 8 characters
The ID of the specific issue workflow transition to execute, including its configured post functions. When multiple transitions share the same start and end statuses, this ID selects the transition.
fieldValues
object[]
The fieldValues of the issue project.
Possible values: >= 8 characters
The ID of fieldValue.
Possible values: >= 1
The type of fieldValue (required in v6.94.6 and earlier).
The value of fieldValue.
linkedWikiPages
object[]
nullable
Wiki pages to associate with the issue, supplied as a complete replacement list. Omit this property or set it to null to request no Wiki association update. An empty array explicitly clears all associations. A non-empty array replaces all associations, ordered by ascending position. The server may normalize stored positions; the supplied position values determine order and are not preserved verbatim. Workflow actions, form defaults, and plugins can still modify associations according to their configuration.
Possible values: >= 8 characters and <= 8 characters
The Wiki page ID (8 characters after trimming whitespace).
The non-negative position used to order the Wiki pages.
resources
object[]
Attachment ids to be associated, separated by commas.
comment
object[]
The comment of the issue.
Possible values: >= 1
The contentType of comment.
The text of comment.
timeEstimated
object
The timeEstimated of the issue.
timeSpent
object[]
The timeSpent of the issue.
The owner of timeSpent.
The startTime of timeSpent.
The hours of timeSpent.
The description of timeSpent.
Responses
- 200
- 401
- 403
- 404
- 500
Request is successful.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
Error meta data for this request.
[
{
"result": "SUCCESS"
},
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "NotFound issue"
},
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "NotFound parentissue"
},
{
"result": "FAIL",
"errorCode": "LimitExceeded",
"errorMsg": "LimitExceeded relatedTask"
},
{
"result": "FAIL",
"errorCode": "MissingParameter",
"errorMsg": "MissingParameter workflow manhour"
},
{
"result": "FAIL",
"errorCode": "MissingParameter",
"errorMsg": "MissingParameter workflow attachment"
},
{
"result": "FAIL",
"errorCode": "MissingParameter",
"errorMsg": "MissingParameter workflow comment"
},
{
"result": "FAIL",
"errorCode": "MissingParameter",
"errorMsg": "MissingParameter workflow relatedwikiPage"
},
{
"result": "FAIL",
"errorCode": "MissingParameter",
"errorMsg": "MissingParameter workflow assign"
},
{
"result": "FAIL",
"errorCode": "MissingParameter",
"errorMsg": "MissingParameter workflow fieldvalue"
},
{
"result": "FAIL",
"errorCode": "MissingParameter",
"errorMsg": "MissingParameter workflow fieldValue"
}
]
Returned if the authentication credentials are incorrect or missing.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Unauthorized",
"errorMsg": "Access token is invalid"
}
Returns if the scope check fails.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Forbidden",
"errorMsg": "Scope is invalid"
}
Returned if the resource object was not found.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "NotFound",
"errorMsg": "Not Found"
}
Internal Server Error.
- application/json
- Schema
- Example (from schema)
Schema
The result of this request.
The error code of this request.
Error message for this request.
{
"result": "FAIL",
"errorCode": "Internal Server Error",
"errorMsg": "Internal Server Error"
}