Open Context Protocol is live! 🚀 Read the launch post

updateIssueType

Update issue type

Details

  • Method: PUT
  • Path: /rest/api/3/issuetype/{id}
  • Operation ID: updateIssueType

Parameters

{
  "id": {
    "description": "The ID of the issue type.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "avatarId": {
    "description": "The ID of an issue type avatar. This can be obtained be obtained from the following endpoints:\n\n *  [System issue type avatar IDs only](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars/#api-rest-api-3-avatar-type-system-get)\n *  [System and custom issue type avatar IDs](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-avatars/#api-rest-api-3-universal-avatar-type-type-owner-entityid-get)",
    "required": false,
    "location": "body",
    "type": "integer"
  },
  "description": {
    "description": "The description of the issue type.",
    "required": false,
    "location": "body",
    "type": "string"
  },
  "name": {
    "description": "The unique name for the issue type. The maximum length is 60 characters.",
    "required": false,
    "location": "body",
    "type": "string"
  }
}

Response Schema

{
  "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"
}

Usage

from ocp_agent import OCPAgent

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

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