Open Context Protocol is live! 🚀 Read the launch post
getIssueAllTypes

getIssueAllTypes

Get all issue types for user

Details

  • Method: GET
  • Path: /rest/api/3/issuetype
  • Operation ID: getIssueAllTypes

Parameters

{}

Response Schema

{
  "items": {
    "additionalProperties": false,
    "description": "Details about an issue type.",
    "properties": {
      "avatarId": {
        "description": "The ID of the issue type's avatar.",
        "format": "int64",
        "readOnly": true,
        "type": "integer"
      },
      "description": {
        "description": "The description of the issue type.",
        "readOnly": true,
        "type": "string"
      },
      "entityId": {
        "description": "Unique ID for next-gen projects.",
        "format": "uuid",
        "readOnly": true,
        "type": "string"
      },
      "hierarchyLevel": {
        "description": "Hierarchy level of the issue type.",
        "format": "int32",
        "readOnly": true,
        "type": "integer"
      },
      "iconUrl": {
        "description": "The URL of the issue type's avatar.",
        "readOnly": true,
        "type": "string"
      },
      "id": {
        "description": "The ID of the issue type.",
        "readOnly": true,
        "type": "string"
      },
      "name": {
        "description": "The name of the issue type.",
        "readOnly": true,
        "type": "string"
      },
      "scope": {
        "allOf": [
          {
            "$ref": "#/components/schemas/Scope"
          }
        ],
        "description": "Details of the next-gen projects the issue type is available in.",
        "readOnly": true
      },
      "self": {
        "description": "The URL of these issue type details.",
        "readOnly": true,
        "type": "string"
      },
      "subtask": {
        "description": "Whether this issue type is used to create subtasks.",
        "readOnly": true,
        "type": "boolean"
      }
    },
    "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('getIssueAllTypes', {
    # Add required parameters here
})