getAllStatuses
Get all statuses for project
Details
- Method:
GET - Path:
/rest/api/3/project/{projectIdOrKey}/statuses - Operation ID:
getAllStatuses
Parameters
{
"projectIdOrKey": {
"description": "The project ID or project key (case sensitive).",
"required": true,
"location": "path",
"type": "string"
}
}Response Schema
{
"items": {
"additionalProperties": false,
"description": "Status details for an issue type.",
"properties": {
"id": {
"description": "The ID of the issue type.",
"readOnly": true,
"type": "string"
},
"name": {
"description": "The name of the issue type.",
"readOnly": true,
"type": "string"
},
"self": {
"description": "The URL of the issue type's status details.",
"readOnly": true,
"type": "string"
},
"statuses": {
"description": "List of status details for the issue type.",
"items": {
"additionalProperties": true,
"description": "A status.",
"properties": {
"description": {
"description": "The description of the status.",
"readOnly": true,
"type": "string"
},
"iconUrl": {
"description": "The URL of the icon used to represent the status.",
"readOnly": true,
"type": "string"
},
"id": {
"description": "The ID of the status.",
"readOnly": true,
"type": "string"
},
"name": {
"description": "The name of the status.",
"readOnly": true,
"type": "string"
},
"scope": {
"allOf": [
{
"$ref": "#/components/schemas/Scope"
}
],
"description": "The scope of the field.",
"readOnly": true
},
"self": {
"description": "The URL of the status.",
"readOnly": true,
"type": "string"
},
"statusCategory": {
"allOf": [
{
"$ref": "#/components/schemas/StatusCategory"
}
],
"description": "The category assigned to the status.",
"readOnly": true
}
},
"type": "object"
},
"readOnly": true,
"type": "array"
},
"subtask": {
"description": "Whether this issue type represents subtasks.",
"readOnly": true,
"type": "boolean"
}
},
"required": [
"id",
"name",
"self",
"statuses",
"subtask"
],
"type": "object"
},
"type": "array"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('getAllStatuses', {
# Add required parameters here
})