migrateQueries
Convert user identifiers to account IDs in JQL queries
Details
- Method:
POST - Path:
/rest/api/3/jql/pdcleaner - Operation ID:
migrateQueries
Parameters
{
"queryStrings": {
"description": "A list of queries with user identifiers. Maximum of 100 queries.",
"required": false,
"location": "body",
"type": "array"
}
}Response Schema
{
"additionalProperties": false,
"description": "The converted JQL queries.",
"properties": {
"queriesWithUnknownUsers": {
"description": "List of queries containing user information that could not be mapped to an existing user",
"items": {
"additionalProperties": false,
"description": "JQL queries that contained users that could not be found",
"properties": {
"convertedQuery": {
"description": "The converted query, with accountIDs instead of user identifiers, or 'unknown' for users that could not be found",
"type": "string"
},
"originalQuery": {
"description": "The original query, for reference",
"type": "string"
}
},
"type": "object"
},
"type": "array"
},
"queryStrings": {
"description": "The list of converted query strings with account IDs in place of user identifiers.",
"items": {
"type": "string"
},
"type": "array"
}
},
"type": "object"
}Usage
from ocp_agent import OCPAgent
agent = OCPAgent()
await agent.register_api('jira')
# Call this tool
result = await agent.call_tool('migrateQueries', {
# Add required parameters here
})