feat: add Jira investigation tools for incident ticket management (#287)#619
Conversation
Greptile SummaryAdds Jira incident-management integration: 4 new investigation tools ( Confidence Score: 5/5Safe to merge; all findings are P2 style suggestions with no blocking bugs or data-integrity issues. The implementation correctly uses POST /rest/api/3/issue/search (the previous endpoint concern is already addressed), follows the established OpsGenie pattern, and is backed by 36 tests with full suite passing. Both remaining findings are P2: an unscoped fallback JQL and a missing upfront project_key guard in JiraCreateIssueTool — neither causes data loss or silent failure. app/services/jira/client.py (fallback JQL) and app/tools/JiraCreateIssueTool/init.py (project_key guard) have minor P2 suggestions worth reviewing before shipping to production. Important Files Changed
|
|
Hey @hamzzaaamalik could you please resolve this issues , also if you get stuck somewhere feel free to dm the team at discord . Thanks !! |
|
@Devesh36 Please check now |
VaibhavUpreti
left a comment
There was a problem hiding this comment.
awesome @hamzzaaamalik !
Summary
Adds Jira integration tools so the investigation agent can search, read, create, and comment on Jira issues during incident response. Fixes #287.
What changed
4 new investigation tools (auto-discovered by the registry, no manual wiring):
jira_search_issues— search issues via JQLjira_issue_detail— fetch full details for a specific issuejira_create_issue— file an incident ticket from investigation findingsjira_add_comment— post RCA findings as a comment on an existing ticketClient enhancements (
app/services/jira/client.py):search_issues()method (POST /rest/api/3/search with JQL)make_jira_client()factory functionIntegration catalog (
app/integrations/catalog.py):classify_integrations(),load_env_integrations(), andresolve_effective_integrations()JIRA_BASE_URL,JIRA_EMAIL,JIRA_API_TOKEN,JIRA_PROJECT_KEYAdded
"jira"toEvidenceSourcetypePattern followed
All tools follow the existing OpsGenie integration pattern (BaseTool subclass,
is_available(),extract_params(),run()).Tests
search_issues(), andmake_jira_client()factoryruff check✓,mypy✓ (0 issues in 348 files),pytest✓ (1995 passed)Test plan
make lintmake typecheckpytest tests/tools/test_jira_* tests/integrations/test_jira_* -vmake test-cov