← Catalog

@dreki-gg/pi-jira

Jira tools for pi via an authenticated Atlassian CLI (acli) session — pull ticket context and write concise comments

Package

Install

Install with PiG

pig install npm:@dreki-gg/pi-jira

Install with Pi

pi install npm:@dreki-gg/pi-jira
Review before installing

Packages run code with your permissions and influence agent behavior. Catalog inclusion is not a security audit. Review the source before installing a third-party package.

Pi manifest JSON

The pi field of package.json.

{
  "extensions": [
    "./extensions/jira"
  ]
}

README

Written by the package's publisher, shown as published in version 0.3.1 (README.md). PiG does not review it.

@dreki-gg/pi-jira

Jira tools for pi that ride on an authenticated Atlassian CLI (acli) session — pull ticket context into the agent and post concise comments back. No API tokens to manage in pi; auth lives entirely in your acli session.

Tools

ToolDescription
jira_viewFetch a work item (description + comments) for context. Returns a compact digest inline and writes the full ticket to a temp file for read.
jira_searchSearch work items with JQL. Returns a compact list of keys, statuses, and summaries.
jira_commentsList the comment thread on a work item.
jira_commentPost a concise comment to a work item.

There is also a /jira command that reports auth + config status.

Setup

1. Install and authenticate the Atlassian CLI

Install acli and log in once in your terminal:

acli jira auth login
acli jira auth status   # confirm you have an active session

pi reuses that session — it never sees your credentials.

2. Install the extension

pi install npm:@dreki-gg/pi-jira

On session start the extension runs acli jira auth status; if there is no active session it warns you to run acli jira auth login.

Project config (optional)

Create .pi/jira.json in your project root:

{
  "acliPath": "acli",
  "defaultProject": "PROJ",
  "viewFields": "summary,issuetype,status,priority,assignee,reporter,labels,components,parent,description,comment,created,updated",
  "searchLimit": 25
}
FieldDefaultPurpose
acliPath"acli"Path/name of the acli binary. Set this if acli is not on PATH.
defaultProject(none)Lets you pass a bare number (e.g. 123 → PROJ-123).
viewFieldscurated setFields requested by jira_view (acli --fields syntax; *all for everything).
searchLimit25Default max results for jira_search.

How context flows

Invariant: every read tool returns a compact digest inline and writes the full, untruncated output to a temp file whose path is in the response. Inline content can be truncated by the harness, so the on-disk copy is the source of truth — read the file path instead of re-fetching. Atlassian Document Format is flattened to text in both. Which tools write files, the digest shape, and the filename pattern are owned by extensions/jira/index.ts + format.ts, not restated here.

Notes

  • Comments are visible to your whole team. The agent is instructed to keep them concise and to confirm wording before posting unless you explicitly asked it to post.
  • Runs on Node.js (pi loads extensions via jiti) and shells out to acli with child_process.execFile — comment bodies and JQL are passed as discrete argv entries, so there is no shell-injection surface.