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

getIssueTypesForProject

Get issue types for project

Details

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

Parameters

{
  "projectId": {
    "description": "The ID of the project.",
    "required": true,
    "location": "query",
    "type": "integer",
    "format": "int64"
  },
  "level": {
    "description": "The level of the issue type to filter by. Use:\n\n *  `-1` for Subtask.\n *  `0` for Base.\n *  `1` for Epic.",
    "required": false,
    "location": "query",
    "type": "integer",
    "format": "int32"
  }
}

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('getIssueTypesForProject', {
    # Add required parameters here
})