issue-management

$npx mdskill add BuilderIO/agent-native/issue-management

Create, update, and retrieve Jira issues with precise parameters.

  • Manages full lifecycle of Jira tickets including creation and modification.
  • Integrates with Jira API to handle project keys, summaries, and priorities.
  • Executes commands based on user input for specific issue operations.
  • Returns structured data containing issue summaries and current status.

SKILL.md

.github/skills/issue-managementView on GitHub ↗
---
name: issue-management
description: >-
  CRUD operations for Jira issues. Use when creating, updating, viewing, or
  searching issues. Covers create-issue, update-issue, get-issue scripts
  and the issue data model.
---

# Issue Management

## Creating Issues

Use the `create-issue` script:

```bash
pnpm action create-issue --project PROJ --summary "Fix login bug" --type Bug --priority High
```

| Arg          | Required | Description                                    |
| ------------ | -------- | ---------------------------------------------- |
| `--project`  | Yes      | Project key (e.g., PROJ, ENG)                  |
| `--summary`  | Yes      | Issue title/summary                            |
| `--type`     | No       | Issue type: Task, Bug, Story, Epic (default: Task) |
| `--priority` | No       | Priority: Highest, High, Medium, Low, Lowest   |

## Updating Issues

Use the `update-issue` script:

```bash
pnpm action update-issue --key PROJ-123 --summary "Updated title" --priority High --labels "bug,frontend"
```

| Arg          | Description                         |
| ------------ | ----------------------------------- |
| `--key`      | Issue key (required)                |
| `--summary`  | New title                           |
| `--priority` | New priority                        |
| `--labels`   | Comma-separated labels              |

## Viewing Issues

Use `get-issue` for full details:

```bash
pnpm action get-issue --key PROJ-123
```

Returns: summary, status, priority, assignee, reporter, labels, comments, subtasks, linked issues, sprint info.

## Listing Issues

```bash
pnpm action list-issues --view my-issues
pnpm action list-issues --view project --projectKey PROJ
```

Views: `my-issues`, `project`, `recent`.

## Searching Issues

```bash
# Text search
pnpm action search-issues --q "login bug"

# JQL search (see jql-queries skill)
pnpm action search-issues --jql "issuetype = Bug AND status != Done"
```

## Issue Data Model

Issues come from the Jira Cloud API. Key fields:

| Field          | Type       | Description                    |
| -------------- | ---------- | ------------------------------ |
| `key`          | string     | Unique identifier (PROJ-123)   |
| `summary`      | string     | Issue title                    |
| `status`       | object     | Current status + category      |
| `priority`     | object     | Priority level                 |
| `issuetype`    | object     | Type (Bug, Task, Story, etc.)  |
| `assignee`     | object     | Assigned user                  |
| `reporter`     | object     | Creator                        |
| `project`      | object     | Parent project                 |
| `labels`       | string[]   | Labels                         |
| `sprint`       | object     | Current sprint (if assigned)   |
| `parent`       | object     | Parent issue (for subtasks)    |
| `subtasks`     | array      | Child issues                   |

## After Mutations

Always run `pnpm action refresh-list` after creating or updating issues to trigger a UI refresh.

## Related Skills

- **issue-transitions** — Changing issue status
- **sprint-workflow** — Sprint and board management
- **jql-queries** — Advanced searching with JQL

More from BuilderIO/agent-native