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

bulkMoveWorklogs

Bulk move worklogs

Details

  • Method: POST
  • Path: /rest/api/3/issue/{issueIdOrKey}/worklog/move
  • Operation ID: bulkMoveWorklogs

Parameters

{
  "issueIdOrKey": {
    "description": "The issue id or key of the destination issue",
    "required": false,
    "location": "body",
    "type": "string"
  },
  "adjustEstimate": {
    "description": "Defines how to update the issues' time estimate, the options are:\n\n *  `leave` Leaves the estimate unchanged.\n *  `auto` Reduces the estimate by the aggregate value of `timeSpent` across all worklogs being moved in the source issue, and increases it in the destination issue.",
    "required": false,
    "location": "query",
    "type": "string",
    "enum": [
      "leave",
      "auto"
    ]
  },
  "overrideEditableFlag": {
    "description": "Whether the work log entry should be moved to and from the issues even if the issues are not editable, because jira.issue.editable set to false or missing. For example, the issue is closed. Connect and Forge app users with admin permission can use this flag.",
    "required": false,
    "location": "query",
    "type": "boolean"
  },
  "ids": {
    "description": "A list of worklog IDs.",
    "required": false,
    "location": "body",
    "type": "array"
  }
}

Usage

from ocp_agent import OCPAgent

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

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