Atlassian Manager

mirbymir
0•

Manages Jira tickets and Confluence documentation using OAuth-authenticated Python scripts and token-efficient YAML output.

The Atlassian skill for Claude Code provides a powerful interface for interacting with Jira and Confluence directly from your development environment. By leveraging a custom Python implementation and Atlassian's OAuth 2.0 authentication, it enables Claude to perform complex tasks such as searching for issues via JQL, updating ticket statuses, managing Confluence page hierarchies, and creating new tasks. A key advantage of this skill is its use of compact YAML formatting, which significantly reduces token consumption compared to standard JSON responses, allowing for more context-heavy interactions without hitting limits.

주요 기능

010 GitHub stars
02Multi-format export capabilities for Markdown, JSON, and YAML
03Seamless OAuth 2.0 authentication with automatic client registration
04Advanced content discovery using JQL for Jira and CQL for Confluence
05Full Jira issue lifecycle management including creation, editing, and transitions
06Token-efficient YAML output format designed for AI context windows

사용 사례

01Updating project status and adding progress comments to Jira tickets directly from the terminal
02Retrieving technical documentation from Confluence to inform coding tasks or architectural decisions
03Automating the creation of bugs or stories based on code analysis or error logs
name description
atlassian
Access Jira issues and Confluence pages via Python scripts with OAuth 2.0 authentication. Use when user asks about Jira tickets, issues, bugs, stories, epics, sprints, or Confluence pages, wiki, documentation. Outputs compact YAML to save tokens. Requires one-time OAuth setup. (plugin:maratai-manager@maratai)

Atlassian Skill

Access Jira and Confluence content via Python scripts. All output is YAML format for minimal token usage.

Setup (First Time Only)

OAuth Login

No prerequisites required - pure Python implementation.

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/auth.py login

This opens your browser for Atlassian OAuth consent. No need to create an OAuth app - uses Atlassian's official MCP authentication with automatic client registration.

Jira Commands

Fetch a ticket

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py get PROJ-123

Output includes: key, id, type, status, summary, description, author, assignee, parent, comments, attachments.

Search with JQL

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py search "project=DEMO AND status='In Progress'"

Common JQL examples:

  • assignee=currentUser() - My assigned issues
  • project=PROJ AND sprint in openSprints() - Current sprint
  • reporter=currentUser() AND created >= -7d - My recent issues
  • labels=urgent AND status!=Done - Urgent incomplete items

Get comments

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py comments PROJ-123

Export issues to files

# Export to markdown files
uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py export "project=DEMO" --format markdown --output-dir ./exports/

# Export to stdout (yaml default)
uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py export "project=DEMO"

# Export to JSON
uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py export "project=DEMO" --format json

Formats: yaml (default), json, markdown. Without --output-dir, outputs to stdout.

List projects

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py projects

Add comment to ticket

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py comment PROJ-123 "This is my comment"

Get available transitions

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py transitions PROJ-123

Transition ticket status

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py transition PROJ-123 "In Progress"
# Or by transition ID
uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py transition PROJ-123 --id 21

Create ticket

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py create PROJ --type Story --summary "My new story"
# With more options
uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py create PROJ --type Bug --summary "Bug title" --description "Details here" --priority High --labels "bug,urgent"
# With custom fields (for project-specific required fields)
uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py create PROJ --type Story --summary "My story" --field "Story Points=5" --field "Team=Platform"

Edit ticket

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py edit PROJ-123 --summary "Updated title"
# Update multiple fields
uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py edit PROJ-123 --summary "New title" --description "New description"
# Update custom fields
uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py edit PROJ-123 --field "Story Points=8" --field "customfield_10001=value"

Assign ticket

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py assign PROJ-123 <account_id>
# Assign to yourself
uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py assign PROJ-123 --me
# Unassign
uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py assign PROJ-123 --unassign

List issue types for a project

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py types PROJ

Issue types vary by project (e.g., Story, Bug, Epic, Task, Experiment).

List fields for an issue type

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py fields PROJ --type Story

Shows all available fields for an issue type, with required fields listed first. Use this to discover custom fields before creating or editing issues.

Get current user info

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py me

Returns your account_id (useful for assignments).

Lookup user by name or email

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py lookup "John Doe"

Confluence Commands

Fetch a page

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/confluence.py get 123456789

Output includes: id, title, space, content, author, ancestors, updated.

Search with CQL

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/confluence.py search "type=page AND space=TEAM"

Common CQL examples:

  • type=page AND title~'architecture' - Pages with "architecture" in title
  • space=TEAM AND lastModified >= now('-7d') - Recent team pages
  • creator=currentUser() - My pages
  • label='important' - Pages with label

Get child pages

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/confluence.py children 123456789

List spaces

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/confluence.py spaces

Get parent pages (ancestors)

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/confluence.py ancestors 123456789

Export pages to files

# Export to markdown files
uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/confluence.py export "space=TEAM" --format markdown --output-dir ./exports/

# Export to stdout (yaml default)
uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/confluence.py export "type=page AND title~'architecture'"

# Export to JSON
uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/confluence.py export "space=TEAM" --format json

Formats: yaml (default), json, markdown. Without --output-dir, outputs to stdout.

Authentication Status

Check if authenticated:

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/auth.py status

Write Operations Note

Write operations (comment, transition, create, edit, assign) require the write:jira-work OAuth scope. If you previously authenticated with read-only permissions, re-run:

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/auth.py login

Example Output

Jira Issue

issue:
  key: PROJ-123
  id: "10001"
  type: Story
  status: In Progress
  summary: Implement OAuth flow
  description: |
    Full description text...
  created: "2024-01-15T10:30:00Z"
  author:
    name: John Doe
    account_id: "5f9e8d7c"
  assignee:
    name: Jane Smith
    account_id: "5f9e8d7d"
  parent:
    key: PROJ-100
    summary: "Epic: Auth"
  comments:
    - author:
        name: John Doe
        account_id: "5f9e8d7c"
      created: "2024-01-15T11:00:00Z"
      body: "Started work"
  attachments:
    - filename: screenshot.png
      size: 45678

Confluence Page

page:
  id: "123456789"
  title: Architecture Overview
  space:
    key: TEAM
    name: Team Space
  content: |
    ## Architecture
    This document describes...
  ancestors:
    - id: "123456780"
      title: Documentation
  author:
    name: Alice
    account_id: "5f9e8d7e"
  updated: "2024-01-18T15:30:00Z"

Transitions

transitions:
  issue_key: PROJ-123
  current_status: To Do
  total: 2
  items:
    - id: "21"
      name: Start Progress
      to_status: In Progress
    - id: "31"
      name: Done
      to_status: Done

Comment Added

comment:
  issue_key: PROJ-123
  id: "10567"
  author:
    name: John Doe
    account_id: "5f9e8d7c"
  created: "2024-01-15T10:30:00Z"

Issue Created

created:
  key: PROJ-456
  id: "10234"
  type: Story
  summary: My new story

Issue Types

types:
  project: PROJ
  total: 5
  items:
    - id: "10000"
      name: Epic
      subtask: false
    - id: "10037"
      name: Story
      subtask: false
    - id: "10166"
      name: Bug
      subtask: false

Issue Fields

fields:
  project: PROJ
  issue_type: Story
  total: 12
  items:
    - name: Summary
      key: summary
      required: true
      type: string
    - name: Story Points
      key: customfield_10001
      required: true
      type: number
    - name: Description
      key: description
      required: false
      type: string
    - name: Labels
      key: labels
      required: false
      type: array

Issue Edited

edited:
  key: PROJ-123
  fields_updated:
    - summary
    - description

User Info

user:
  account_id: "712020:abc123..."
  name: John Doe
  email: john.doe@example.com

Troubleshooting

"Not authenticated" error

Run the login command shown in Setup above.

"Token expired" error

Run the login command again to re-authenticate. OAuth tokens auto-refresh, but refresh tokens can expire after extended periods of inactivity.

"No cloud ID" error

Re-authenticate by running the login command shown in Setup above.

"Permission denied" on write operations

Your OAuth token may lack write permissions. Re-authenticate to get new permissions:

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/auth.py login

"Transition not found" error

The target status is not available from the current issue status. Use transitions command to see available options.

"Required field missing" or field validation errors

Projects often have custom required fields (e.g., Story Points, Team). To discover required fields:

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py fields PROJ --type Story

Then add the required fields using --field:

uv run --directory ${CLAUDE_PLUGIN_ROOT}/skills/atlassian scripts/jira.py create PROJ --type Story --summary "Title" --field "customfield_10001=5"