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

getSecurityLevelsForProject

Get project issue security levels

Details

  • Method: GET
  • Path: /rest/api/3/project/{projectKeyOrId}/securitylevel
  • Operation ID: getSecurityLevelsForProject

Parameters

{
  "projectKeyOrId": {
    "description": "The project ID or project key (case sensitive).",
    "required": true,
    "location": "path",
    "type": "string"
  }
}

Response Schema

{
  "additionalProperties": false,
  "description": "List of issue level security items in a project.",
  "properties": {
    "levels": {
      "description": "Issue level security items list.",
      "items": {
        "additionalProperties": false,
        "description": "Details of an issue level security item.",
        "properties": {
          "description": {
            "description": "The description of the issue level security item.",
            "readOnly": true,
            "type": "string"
          },
          "id": {
            "description": "The ID of the issue level security item.",
            "readOnly": true,
            "type": "string"
          },
          "isDefault": {
            "description": "Whether the issue level security item is the default.",
            "readOnly": true,
            "type": "boolean"
          },
          "issueSecuritySchemeId": {
            "description": "The ID of the issue level security scheme.",
            "readOnly": true,
            "type": "string"
          },
          "name": {
            "description": "The name of the issue level security item.",
            "readOnly": true,
            "type": "string"
          },
          "self": {
            "description": "The URL of the issue level security item.",
            "readOnly": true,
            "type": "string"
          }
        },
        "type": "object"
      },
      "readOnly": true,
      "type": "array"
    }
  },
  "required": [
    "levels"
  ],
  "type": "object"
}

Usage

from ocp_agent import OCPAgent

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

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