getChangeLogsByIds
Get changelogs by IDs
Details
- Method:
POST - Path:
/rest/api/3/issue/{issueIdOrKey}/changelog/list - Operation ID:
getChangeLogsByIds
Parameters
{
"issueIdOrKey": {
"description": "The ID or key of the issue.",
"required": true,
"location": "path",
"type": "string"
},
"changelogIds": {
"description": "The list of changelog IDs.",
"required": true,
"location": "body",
"type": "array"
}
}Response Schema
{
"additionalProperties": false,
"description": "A page of changelogs.",
"properties": {
"histories": {
"description": "The list of changelogs.",
"items": {
"additionalProperties": false,
"description": "A log of changes made to issue fields. Changelogs related to workflow associations are currently being deprecated.",
"properties": {
"author": {
"allOf": [
{
"$ref": "#/components/schemas/UserDetails"
}
],
"description": "The user who made the change.",
"readOnly": true
},
"created": {
"description": "The date on which the change took place.",
"format": "date-time",
"readOnly": true,
"type": "string"
},
"historyMetadata": {
"allOf": [
{
"$ref": "#/components/schemas/HistoryMetadata"
}
],
"description": "The history metadata associated with the changed.",
"readOnly": true
},
"id": {
"description": "The ID of the changelog.",
"readOnly": true,
"type": "string"
},
"items": {
"description": "The list of items changed.",
"items": {
"additionalProperties": false,
"description": "A change item.",
"properties": {
"field": {
"description": "The name of the field changed.",
"readOnly": true,
"type": "string"
},
"fieldId": {
"description": "The ID of the field changed.",
"readOnly": true,
"type": "string"
},
"fieldtype": {
"description": "The type of the field changed.",
"readOnly": true,
"type": "string"
},
"from": {
"description": "The details of the original value.",
"readOnly": true,
"type": "string"
},
"fromString": {
"description": "The details of the original value as a string.",
"readOnly": true,
"type": "string"
},
"to": {
"description": "The details of the new value.",
"readOnly": true,
"type": "string"
},
"toString": {
"description": "The details of the new value as a string.",
"readOnly": true,
"type": "string"
}
},
"type": "object"
},
"readOnly": true,
"type": "array"
}
},
"type": "object"
},
"readOnly": true,
"type": "array"
},
"maxResults": {
"description": "The maximum number of results that could be on the page.",
"format": "int32",
"readOnly": true,
"type": "integer"
},
"startAt": {
"description": "The index of the first item returned on the page.",
"format": "int32",
"readOnly": true,
"type": "integer"
},
"total": {
"description": "The number of results on the page.",
"format": "int32",
"readOnly": true,
"type": "integer"
}
},
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('getChangeLogsByIds', {
# Add required parameters here
})