countIssues
Count issues using JQL
Details
- Method:
POST - Path:
/rest/api/3/search/approximate-count - Operation ID:
countIssues
Parameters
{
"jql": {
"description": "A [JQL](https://confluence.atlassian.com/x/egORLQ) expression. For performance reasons, this parameter requires a bounded query. A bounded query is a query with a search restriction.",
"required": false,
"location": "body",
"type": "string"
}
}Response Schema
{
"additionalProperties": false,
"properties": {
"count": {
"description": "Number of issues matching JQL query.",
"format": "int64",
"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('countIssues', {
# Add required parameters here
})