doTransition
Transition issue
Details
- Method:
POST - Path:
/rest/api/3/issue/{issueIdOrKey}/transitions - Operation ID:
doTransition
Parameters
{
"issueIdOrKey": {
"description": "The ID or key of the issue.",
"required": true,
"location": "path",
"type": "string"
},
"fields": {
"description": "List of issue screen fields to update, specifying the sub-field to update and its value for each field. This field provides a straightforward option when setting a sub-field. When multiple sub-fields or other operations are required, use `update`. Fields included in here cannot be included in `update`.",
"required": false,
"location": "body",
"type": "object"
},
"historyMetadata": {
"description": "Additional issue history details.",
"required": false,
"location": "body",
"type": "string"
},
"properties": {
"description": "Details of issue properties to be add or update.",
"required": false,
"location": "body",
"type": "array"
},
"transition": {
"description": "Details of a transition. Required when performing a transition, optional when creating or editing an issue.",
"required": false,
"location": "body",
"type": "string"
},
"update": {
"description": "A Map containing the field field name and a list of operations to perform on the issue screen field. Note that fields included in here cannot be included in `fields`.",
"required": false,
"location": "body",
"type": "object"
}
}Response Schema
{}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('doTransition', {
# Add required parameters here
})