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

getComponentRelatedIssues

Get component issues count

Details

  • Method: GET
  • Path: /rest/api/3/component/{id}/relatedIssueCounts
  • Operation ID: getComponentRelatedIssues

Parameters

{
  "id": {
    "description": "The ID of the component.",
    "required": true,
    "location": "path",
    "type": "string"
  }
}

Response Schema

{
  "additionalProperties": false,
  "description": "Count of issues assigned to a component.",
  "properties": {
    "issueCount": {
      "description": "The count of issues assigned to a component.",
      "format": "int64",
      "readOnly": true,
      "type": "integer"
    },
    "self": {
      "description": "The URL for this count of issues for a component.",
      "format": "uri",
      "readOnly": true,
      "type": "string"
    }
  },
  "type": "object",
  "xml": {
    "name": "component"
  }
}

Usage

from ocp_agent import OCPAgent

agent = OCPAgent()
await agent.register_api('jira')

# Call this tool
result = await agent.call_tool('getComponentRelatedIssues', {
    # Add required parameters here
})