Hermes Agent with Jira: Detect Duplicate Issues and Generate Acceptance Criteria
Find candidate Jira duplicates and draft proposal-quality acceptance criteria for a reviewer. Limit the analysis to projects the read-only integration can access.
Architecture
Jira search → normalize issue text → rank candidates → Hermes review packet
Prerequisites and configuration
For Jira Cloud use the enhanced JQL search endpoint and paginate with the returned page token. Query a bounded project and date window, selecting only required fields. Validate the project against a server-side allowlist and avoid accepting raw JQL from the agent. Flatten Atlassian Document Format to plain text while preserving list boundaries and code samples that matter for issue meaning.
Implementation
Rank candidate issues using shared component, normalized summary and reproduction symptoms before asking Hermes for a rationale. Two tickets mentioning checkout can describe distinct faults if one fails payment authorization and the other renders incorrect tax. Generate acceptance criteria in Given/When/Then form tied to behavior the source actually describes. Surface ambiguity as a product question.
Implementation example
POST /rest/api/3/search/jql
{"jql":"project = DEMO ORDER BY updated DESC"}Testing and troubleshooting
Use a fixture with one confirmed duplicate and two similar nonduplicates. Grade the candidate list’s first few results and require the reviewer to cite a reproducible symptom when marking a duplicate. On Jira errors, distinguish missing permissions from a genuinely empty project.
Frequently asked question
Should the workflow close duplicate issues?
Keep issue changes with an authorized Jira reviewer. The output contains candidate links and reasons.
Comments
Post a Comment