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

createCustomFieldContext

Create custom field context

Details

  • Method: POST
  • Path: /rest/api/3/field/{fieldId}/context
  • Operation ID: createCustomFieldContext

Parameters

{
  "fieldId": {
    "description": "The ID of the custom field.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "description": {
    "description": "The description of the context.",
    "required": false,
    "location": "body",
    "type": "string"
  },
  "id": {
    "description": "The ID of the context.",
    "required": false,
    "location": "body",
    "type": "string"
  },
  "issueTypeIds": {
    "description": "The list of issue types IDs for the context. If the list is empty, the context refers to all issue types.",
    "required": false,
    "location": "body",
    "type": "array"
  },
  "name": {
    "description": "The name of the context.",
    "required": true,
    "location": "body",
    "type": "string"
  },
  "projectIds": {
    "description": "The list of project IDs associated with the context. If the list is empty, the context is global.",
    "required": false,
    "location": "body",
    "type": "array"
  }
}

Response Schema

{
  "additionalProperties": false,
  "description": "The details of a created custom field context.",
  "properties": {
    "description": {
      "description": "The description of the context.",
      "type": "string"
    },
    "id": {
      "description": "The ID of the context.",
      "readOnly": true,
      "type": "string"
    },
    "issueTypeIds": {
      "description": "The list of issue types IDs for the context. If the list is empty, the context refers to all issue types.",
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "name": {
      "description": "The name of the context.",
      "type": "string"
    },
    "projectIds": {
      "description": "The list of project IDs associated with the context. If the list is empty, the context is global.",
      "items": {
        "type": "string"
      },
      "type": "array"
    }
  },
  "required": [
    "name"
  ],
  "type": "object"
}

Usage

from ocp_agent import OCPAgent

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

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