agentleFS
aholbreichaholbreich/agent-skills/skills/jira-browser-fetch/SKILL.md

jira-browser-fetch

Skill3 starsChanged 4 months agoMITView on GitHub

Fetch Jira issue raw data through an authenticated Chrome browser session when jira-cli/API tokens do not work, especially with Microsoft/SSO. Use to archive Jira issues, Jira Software board backlogs, JQL result sets, linked tickets, rendered HTML/XML, remote links, and attachments into a raw wiki folder.

The file

We split this skill into the rules it gives an agent

11 rules. About 0 are common, 7 are distinctive, and 4 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 4

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Use this skill when Jira API-token authentication fails or the organization uses Microsoft/SSO and the user wants Jira issues, Jira …

    line 10
  2. Distinctive:

    Never ask the user to paste Jira cookies or API tokens into chat.

    line 16
  3. Distinctive:

    Prefer the browser automation flow because secrets remain in the local Chrome profile.

    line 17
  4. Distinctive:

    Treat fetched issue data and attachments as potentially confidential.

    line 18
  5. Very specific:

    Do not update/transition/edit Jira issues with this skill.

    line 19
  6. Distinctive:

    Use this skill for user requests like:

    line 46
  7. Very specific:

    All five Atlassian skills (jira-browser-fetch, jira-update, confluence-browser-fetch, confluence-update, bitbucket-browser-fetch) default …

    line 56
  8. Very specific:

    Reuse signal: When attaching to an existing session, the script prints Reusing Chrome DevTools on port 9223 and (if the target tab is open) …

    line 60
  9. Very specific:

    If Chrome/Chromium is installed via Flatpak, Snap, or another non-PATH location, set CHROME=/path/to/launcher (or a wrapper script) so the …

    line 62
  10. Distinctive:

    Run the script and show the command first.

    line 69
  11. Distinctive:

    If Chrome opens (first run or expired session), ask the user to complete SSO in that window.

    line 70

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Jira Browser Fetch

Use this skill when Jira API-token authentication fails or the organization uses Microsoft/SSO and the user wants Jira issues, Jira Software board backlogs, or JQL result sets archived into a local raw/wiki folder.

The bundled script opens/reuses Chrome with a dedicated profile, lets the user complete SSO once, extracts Jira cookies via Chrome DevTools, verifies they represent an authenticated Jira REST session, and fetches Jira REST/HTML/XML/attachments into a raw directory.

Safety

  • Never ask the user to paste Jira cookies or API tokens into chat.
  • Prefer the browser automation flow because secrets remain in the local Chrome profile.
  • Treat fetched issue data and attachments as potentially confidential.
  • Do not update/transition/edit Jira issues with this skill; it is read-only.

Script

scripts/jira-browser-fetch.js ISSUE-KEY [options]

Important options:

--server URL       Jira base URL, e.g. https://example.atlassian.net
--raw-dir DIR      folder where ISSUE-KEY/ directories are created
--connected        fetch connected/referenced tickets too
--depth N          recursion depth for connected tickets
--scan-text        find issue keys in JSON/XML/HTML text, not only formal Jira links
--jql JQL          search Jira with JQL and fetch all matching issues
--backlog URL|ID   fetch all issues from a Jira Software board backlog URL or board id
--assignee-me      fetch all issues assigned to current Jira user
--max-attachment-size S  skip attachment files larger than S (default 5mb; use unlimited to disable)
--prefix A,B,C     only follow keys with these project prefixes
--wait SEC         SSO/session wait timeout per issue
--skip-existing    skip issues that already have a valid raw/<KEY>/issue.json

Example User Requests

Use this skill for user requests like:

  • "Fetch Jira issue PROJ-123 into raw/ through my browser session."
  • "Archive this Jira backlog for my LLM wiki: https://example.atlassian.net/jira/software/c/projects/ABC/boards/42/backlog?epics=visible."
  • "Fetch all Jira issues matching this JQL into the wiki raw folder."
  • "Pull my assigned Jira issues without asking me for an API token."
  • "Fetch this ticket and all linked tickets, including attachments under the default size limit."

Shared Atlassian SSO Session

All five Atlassian skills (jira-browser-fetch, jira-update, confluence-browser-fetch, confluence-update, bitbucket-browser-fetch) default to the same Chrome profile (~/.local/share/atlassian-browser-chrome) and DevTools port (9223). Log in once via any skill and the others reuse that session automatically — no env vars needed.

This is a separate Chrome window from any browser the user already has open. The script always launches its own profile with remote-debugging enabled; cookies from the user's regular Chrome are not read. The user logs in inside the window the script opens; that session is then reused by every Atlassian skill until it expires.

Reuse signal. When attaching to an existing session, the script prints Reusing Chrome DevTools on port 9223 and (if the target tab is open) Found existing tab for <host>. When you see those lines, do not ask the user to re-SSO — the session is already valid.

If Chrome/Chromium is installed via Flatpak, Snap, or another non-PATH location, set CHROME=/path/to/launcher (or a wrapper script) so the script can find the binary.

Override with ATLASSIAN_CHROME_PROFILE and/or ATLASSIAN_CHROME_DEBUG_PORT to relocate the shared profile/port, or use skill-specific *_CHROME_PROFILE / *_CHROME_DEBUG_PORT env vars for isolation.

Typical Workflow

  1. Identify raw directory.
  2. Run the script and show the command first.
  3. If Chrome opens (first run or expired session), ask the user to complete SSO in that window. On subsequent invocations the script reuses the session silently — see the Reuse signal above.
  4. Verify saved files.

Example:

scripts/jira-browser-fetch.js \
  SWING-4770 \
  --server https://example.atlassian.net \
  --raw-dir ./raw \
  --connected \
  --scan-text \
  --prefix SWING,SSD,EC \
  --depth 1

# Fetch requested issues plus everything assigned to current user:
scripts/jira-browser-fetch.js \
  SWING-4611 SWING-4621 \
  --server https://example.atlassian.net \
  --raw-dir ./raw \
  --assignee-me

# Fetch every issue currently visible in a Jira Software board backlog:
scripts/jira-browser-fetch.js \
  --server https://example.atlassian.net \
  --raw-dir ./raw \
  --backlog 'https://example.atlassian.net/jira/software/c/projects/ABC/boards/42/backlog?epics=visible'

Output Layout

For each issue:

raw/ISSUE-KEY/
├── issue.json           # Jira REST issue with renderedFields,names,schema,changelog
├── issue.html           # Browser issue page HTML
├── issue.xml            # Jira XML issue view
├── remotelinks.json     # Jira remote links endpoint
├── connected-keys.json  # Connected/referenced issue keys detected
├── metadata.json        # Fetch metadata
├── attachments.json     # Attachment manifest, including skipped large-file references
└── attachments/         # Downloaded attachments under max-size threshold

A run manifest is written to:

raw/jira-browser-fetch-run.json

Backlog fetches also write:

raw/jira-board-<board-id>-backlog.json

Installation / PATH

The skill can be used directly by path. Optionally install a convenience symlink:

mkdir -p ~/.local/bin
ln -sf ~/.pi/agent/skills/jira-browser-fetch/scripts/jira-browser-fetch.js ~/.local/bin/jira-browser-fetch

Then use:

jira-browser-fetch SWING-4770 --raw-dir ./raw --connected

References

  • Usage reference
  • Distribution guide

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.