Jira integration

From event4u-app/agent-config · View interactive version

Jira integration is an AI agent skill from the GitHub repository event4u-app/agent-config. Use when the user says \"check Jira\", \"create ticket\", \"update issue\", or needs JQL queries, ticket transitions, or branch-to-ticket linking.

How to use this skill

Skill file

Jira Skill

When to use

Use this skill when:

Do NOT use when:

Procedure: Work with Jira

  1. Identify action — Search, read, create, update, or transition a ticket?
  2. Use the correct endpoint — See API table below.
  3. Execute — Make the API call with required fields.
  4. Verify — Confirm the response contains expected data or the ticket was updated.

| Tool | Purpose |

|---|---|

| jira-integration (GET /search/jql) | Search issues with JQL |

| jira-integration (GET /issue/{key}) | Read a specific ticket |

| jira-integration (POST /issue) | Create a new ticket |

| jira-integration (PUT /issue/{key}) | Update a ticket |

| jira-integration (GET /issue/{key}/transitions) | Get available status transitions |

| jira-integration (POST /issue/{key}/transitions) | Transition ticket status |

| jira-integration (POST /issue/{key}/comment) | Add a comment |

| jira-integration (GET /project) | List projects |

| jira-integration (GET /field) | List available fields (check before writing JQL) |

Branch-to-ticket detection

Extract ticket IDs from branch names automatically:

feat/DEV-1234/user-notifications  →  DEV-1234
fix/DEV-5678/null-pointer         →  DEV-5678
hotfix/DEV-999/critical-fix       →  DEV-999

Read it with agent-config git:convention ticket — CODE1 § Reading the ticket.

Use git branch --show-current to detect, then fetch the ticket:

jira GET /issue/DEV-1234

JQL patterns

Common queries

# My open tickets
assignee = currentUser() AND status != Done ORDER BY priority DESC

# Tickets in current sprint
project = DEV AND sprint in openSprints() AND assignee = currentUser()

# Recently updated bugs
project = DEV AND type = Bug AND updated >= -7d ORDER BY updated DESC

# Tickets by component
project = DEV AND component = "Import" AND status != Done

Tips

Creating tickets

Required fields

Always check issue types first: GET /issue/createmeta/{project}/issuetypes

Minimum fields for creation:

Description format (ADF)

Jira uses Atlassian Document Format for descriptions:

{
  "version": 1,
  "type": "doc",
  "content": [
    {
      "type": "paragraph",
      "content": [
        { "type": "text", "text": "Description text here." }
      ]
    }
  ]
}

Attribution

Always add attribution when creating issues or comments:

Co-authored by Augment Code

With link to https://www.augmentcode.com/?utm_source=atlassian&utm_medium=jira_issue&utm_campaign=jira

Status transitions

Before transitioning, always get available transitions first:

GET /issue/DEV-1234/transitions

Then transition with the correct ID:

POST /issue/DEV-1234/transitions
{ "transition": { "id": "31" } }

Important: Never transition without explicit user permission (see rules/no-commit.md — same principle applies to ticket status changes).

Linking to PRs

When creating PRs, include the Jira ticket in:

built per CODE0

Related

Output format

  1. Jira ticket data presented in structured format
  2. Ticket key, summary, status, and relevant fields

Gotcha

Do NOT

Auto-trigger keywords

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.