Jira Integration
Overview
Jira integration for searching recent development context during Root Cause Analysis and tracking incidents afterward. Jira is a mandatory first step in any RCA investigation -- search here BEFORE infrastructure or CI/CD tools.
Jira operates in one of two modes based on user preference (jira_mode):
comment_only (default): Only jira_search_issues, jira_get_issue, and jira_add_comment are available.
full: All six tools are available including create, update, and link.
Instructions
MANDATORY FIRST STEP -- CHANGE CONTEXT & KNOWLEDGE BASE
You MUST call Jira tools BEFORE any infrastructure or CI/CD investigation.
Skipping this step is a failure of the investigation.
Your FIRST tool calls MUST be jira_search_issues.
Tools
Investigation tools (always available):
jira_search_issues(jql='...') -- Search Jira issues using JQL. Returns matching issues with key, summary, status, assignee, labels.
jira_get_issue(issue_key='PROJ-123') -- Get full details of a Jira issue by key. Returns description, status, comments, linked PRs.
jira_add_comment(issue_key='PROJ-123', comment='...') -- Add a comment to a Jira issue. Non-destructive operation.
Write tools (full mode only):
jira_create_issue(project_key='PROJ', summary='...', description='...', issue_type='Bug') -- Create a new Jira issue in a project.
jira_update_issue(issue_key='PROJ-123', ...) -- Update fields on an existing Jira issue.
jira_link_issues(inward_issue='PROJ-123', outward_issue='PROJ-456', link_type='Relates') -- Create a link between two Jira issues (Relates, Blocks, Clones, etc.).
RCA Investigation Flow
Step 1 -- Find related recent work (DO THIS IMMEDIATELY)
jira_search_issues(jql='text ~ "SERVICE" AND updated >= -7d ORDER BY updated DESC') -- Recent tickets for this service
jira_search_issues(jql='type in (Bug, Incident) AND status != Done AND updated >= -14d ORDER BY updated DESC') -- Open bugs/incidents
jira_search_issues(jql='type in (Story, Task) AND status = Done AND updated >= -3d ORDER BY updated DESC') -- Recently completed work (likely deployed)
Step 2 -- For each relevant ticket, check details
jira_get_issue(issue_key='PROJ-123') -- Read the description, linked PRs, comments for context on what changed
What to look for
- Recently completed stories/tasks -- code that was just deployed
- Open bugs with similar symptoms -- known issues
- Config change tickets -- infrastructure or config drift
- Linked PRs/commits -- exact code changes to correlate with the failure
Step 3 -- Use Jira findings to NARROW infrastructure investigation
If a ticket mentions a DB migration, focus on DB connectivity. If a ticket mentions a config change, check configs first.
Post-Investigation (comment_only mode)
jira_add_comment(issue_key='PROJ-123', comment='update') -- Add findings to existing issue
- After adding a comment, the tool returns a
url field. Always share this link with the user as a markdown link so they can click through to Jira.
- Write comments as short, clean plain text. No markdown syntax. Structure: Title, Root Cause, Impact, Evidence, Remediation. Under 15 lines.
- NOTE: In comment_only mode, do NOT create new issues or link issues.
Post-Investigation (full mode)
jira_create_issue(project_key='PROJ', summary='title', description='details', issue_type='Bug') -- Create incident tracking issue
jira_add_comment(issue_key='PROJ-123', comment='update') -- Add findings to existing issue
- After adding a comment or creating an issue, the tool returns a
url field. Always share this link with the user as a markdown link so they can click through to Jira.
- Write comments as short, clean plain text. No markdown syntax. Structure: Title, Root Cause, Impact, Evidence, Remediation. Under 15 lines.
Important Rules
- CRITICAL: During the investigation phase, ONLY use jira_search_issues and jira_get_issue.
- Do NOT use jira_create_issue, jira_add_comment, jira_update_issue, or jira_link_issues during investigation.
- Jira filing happens automatically in a separate step after your investigation completes.
- After Jira context, proceed to infrastructure/CI tools.
RCA Investigation (Mandatory First Step)
You MUST call Jira tools BEFORE any infrastructure investigation.
Step 1 -- Find related recent work:
jira_search_issues(jql='text ~ "{escaped_service}" AND updated >= -7d ORDER BY updated DESC') -- Recent tickets
jira_search_issues(jql='type in (Bug, Incident) AND status != Done AND updated >= -14d ORDER BY updated DESC') -- Open bugs
jira_search_issues(jql='type in (Story, Task) AND status = Done AND updated >= -3d ORDER BY updated DESC') -- Recently completed
Step 2 -- Check details:
jira_get_issue(issue_key='PROJ-123') -- Description, linked PRs, comments
What to look for:
- Recently completed stories --> code just deployed
- Open bugs with similar symptoms --> known issues
- Config change tickets --> infrastructure drift
- Linked PRs --> exact code changes
Use findings to NARROW infrastructure investigation.
CRITICAL: During investigation, ONLY use jira_search_issues and jira_get_issue.
Jira filing happens automatically after investigation completes.
1---2name: jira3description: Jira integration for searching recent development context, tracking incidents, and managing issues during RCA4---56# Jira Integration78## Overview9Jira integration for searching recent development context during Root Cause Analysis and tracking incidents afterward. Jira is a **mandatory first step** in any RCA investigation -- search here BEFORE infrastructure or CI/CD tools.1011Jira operates in one of two modes based on user preference (`jira_mode`):12- `comment_only` (default): Only `jira_search_issues`, `jira_get_issue`, and `jira_add_comment` are available.13- `full`: All six tools are available including create, update, and link.1415## Instructions1617### MANDATORY FIRST STEP -- CHANGE CONTEXT & KNOWLEDGE BASE1819**You MUST call Jira tools BEFORE any infrastructure or CI/CD investigation.**20Skipping this step is a failure of the investigation.2122Your FIRST tool calls MUST be `jira_search_issues`.2324### Tools2526**Investigation tools (always available):**27- `jira_search_issues(jql='...')` -- Search Jira issues using JQL. Returns matching issues with key, summary, status, assignee, labels.28- `jira_get_issue(issue_key='PROJ-123')` -- Get full details of a Jira issue by key. Returns description, status, comments, linked PRs.29- `jira_add_comment(issue_key='PROJ-123', comment='...')` -- Add a comment to a Jira issue. Non-destructive operation.3031**Write tools (full mode only):**32- `jira_create_issue(project_key='PROJ', summary='...', description='...', issue_type='Bug')` -- Create a new Jira issue in a project.33- `jira_update_issue(issue_key='PROJ-123', ...)` -- Update fields on an existing Jira issue.34- `jira_link_issues(inward_issue='PROJ-123', outward_issue='PROJ-456', link_type='Relates')` -- Create a link between two Jira issues (Relates, Blocks, Clones, etc.).3536### RCA Investigation Flow3738#### Step 1 -- Find related recent work (DO THIS IMMEDIATELY)39- `jira_search_issues(jql='text ~ "SERVICE" AND updated >= -7d ORDER BY updated DESC')` -- Recent tickets for this service40- `jira_search_issues(jql='type in (Bug, Incident) AND status != Done AND updated >= -14d ORDER BY updated DESC')` -- Open bugs/incidents41- `jira_search_issues(jql='type in (Story, Task) AND status = Done AND updated >= -3d ORDER BY updated DESC')` -- Recently completed work (likely deployed)4243#### Step 2 -- For each relevant ticket, check details44- `jira_get_issue(issue_key='PROJ-123')` -- Read the description, linked PRs, comments for context on what changed4546#### What to look for47- Recently completed stories/tasks -- code that was just deployed48- Open bugs with similar symptoms -- known issues49- Config change tickets -- infrastructure or config drift50- Linked PRs/commits -- exact code changes to correlate with the failure5152#### Step 3 -- Use Jira findings to NARROW infrastructure investigation53If a ticket mentions a DB migration, focus on DB connectivity. If a ticket mentions a config change, check configs first.5455### Post-Investigation (comment_only mode)56- `jira_add_comment(issue_key='PROJ-123', comment='update')` -- Add findings to existing issue57- After adding a comment, the tool returns a `url` field. Always share this link with the user as a markdown link so they can click through to Jira.58- Write comments as short, clean plain text. No markdown syntax. Structure: Title, Root Cause, Impact, Evidence, Remediation. Under 15 lines.59- NOTE: In comment_only mode, do NOT create new issues or link issues.6061### Post-Investigation (full mode)62- `jira_create_issue(project_key='PROJ', summary='title', description='details', issue_type='Bug')` -- Create incident tracking issue63- `jira_add_comment(issue_key='PROJ-123', comment='update')` -- Add findings to existing issue64- After adding a comment or creating an issue, the tool returns a `url` field. Always share this link with the user as a markdown link so they can click through to Jira.65- Write comments as short, clean plain text. No markdown syntax. Structure: Title, Root Cause, Impact, Evidence, Remediation. Under 15 lines.6667### Important Rules68- **CRITICAL: During the investigation phase, ONLY use jira_search_issues and jira_get_issue.**69- Do NOT use jira_create_issue, jira_add_comment, jira_update_issue, or jira_link_issues during investigation.70- Jira filing happens automatically in a separate step after your investigation completes.71- After Jira context, proceed to infrastructure/CI tools.7273## RCA Investigation (Mandatory First Step)74**You MUST call Jira tools BEFORE any infrastructure investigation.**7576### Step 1 -- Find related recent work:77- `jira_search_issues(jql='text ~ "{escaped_service}" AND updated >= -7d ORDER BY updated DESC')` -- Recent tickets78- `jira_search_issues(jql='type in (Bug, Incident) AND status != Done AND updated >= -14d ORDER BY updated DESC')` -- Open bugs79- `jira_search_issues(jql='type in (Story, Task) AND status = Done AND updated >= -3d ORDER BY updated DESC')` -- Recently completed8081### Step 2 -- Check details:82- `jira_get_issue(issue_key='PROJ-123')` -- Description, linked PRs, comments8384### What to look for:85- Recently completed stories --> code just deployed86- Open bugs with similar symptoms --> known issues87- Config change tickets --> infrastructure drift88- Linked PRs --> exact code changes8990Use findings to NARROW infrastructure investigation.9192**CRITICAL: During investigation, ONLY use jira_search_issues and jira_get_issue.**93Jira filing happens automatically after investigation completes.