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

deleteAndReplaceVersion

Delete and replace version

Details

  • Method: POST
  • Path: /rest/api/3/version/{id}/removeAndSwap
  • Operation ID: deleteAndReplaceVersion

Parameters

{
  "id": {
    "description": "The ID of the version.",
    "required": true,
    "location": "path",
    "type": "string"
  },
  "customFieldReplacementList": {
    "description": "An array of custom field IDs (`customFieldId`) and version IDs (`moveTo`) to update when the fields contain the deleted version.",
    "required": false,
    "location": "body",
    "type": "array"
  },
  "moveAffectedIssuesTo": {
    "description": "The ID of the version to update `affectedVersion` to when the field contains the deleted version.",
    "required": false,
    "location": "body",
    "type": "integer"
  },
  "moveFixIssuesTo": {
    "description": "The ID of the version to update `fixVersion` to when the field contains the deleted version.",
    "required": false,
    "location": "body",
    "type": "integer"
  }
}

Response Schema

{}

Usage

from ocp_agent import OCPAgent

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

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