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

assignProjectsToCustomFieldContext

Assign custom field context to projects

Details

  • Method: PUT
  • Path: /rest/api/3/field/{fieldId}/context/{contextId}/project
  • Operation ID: assignProjectsToCustomFieldContext

Parameters

{
  "fieldId": {
    "description": "The ID of the custom field.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "contextId": {
    "description": "The ID of the context.",
    "required": true,
    "location": "path",
    "type": "integer",
    "format": "int64"
  },
  "projectIds": {
    "description": "The IDs of projects.",
    "required": true,
    "location": "body",
    "type": "array"
  }
}

Response Schema

{}

Usage

from ocp_agent import OCPAgent

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

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