deleteWorklog
Delete worklog
Details
- Method:
DELETE - Path:
/rest/api/3/issue/{issueIdOrKey}/worklog/{id} - Operation ID:
deleteWorklog
Parameters
{
"issueIdOrKey": {
"description": "The ID or key of the issue.",
"required": true,
"location": "path",
"type": "string"
},
"id": {
"description": "The ID of the worklog.",
"required": true,
"location": "path",
"type": "string"
},
"notifyUsers": {
"description": "Whether users watching the issue are notified by email.",
"required": false,
"location": "query",
"type": "boolean"
},
"adjustEstimate": {
"description": "Defines how to update the issue's time estimate, the options are:\n\n * `new` Sets the estimate to a specific value, defined in `newEstimate`.\n * `leave` Leaves the estimate unchanged.\n * `manual` Increases the estimate by amount specified in `increaseBy`.\n * `auto` Reduces the estimate by the value of `timeSpent` in the worklog.",
"required": false,
"location": "query",
"type": "string",
"enum": [
"new",
"leave",
"manual",
"auto"
]
},
"newEstimate": {
"description": "The value to set as the issue's remaining time estimate, as days (\\#d), hours (\\#h), or minutes (\\#m or \\#). For example, *2d*. Required when `adjustEstimate` is `new`.",
"required": false,
"location": "query",
"type": "string"
},
"increaseBy": {
"description": "The amount to increase the issue's remaining estimate by, as days (\\#d), hours (\\#h), or minutes (\\#m or \\#). For example, *2d*. Required when `adjustEstimate` is `manual`.",
"required": false,
"location": "query",
"type": "string"
},
"overrideEditableFlag": {
"description": "Whether the work log entry should be added to the issue even if the issue is 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"
}
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('deleteWorklog', {
# Add required parameters here
})