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.
In this repository4 other files it gives its agents.
- bitbucket-browser-fetchSkill
- confluence-browser-fetchSkill
- confluence-updateSkill
- jira-updateSkill
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
- Distinctive: line 10
Use this skill when Jira API-token authentication fails or the organization uses Microsoft/SSO and the user wants Jira issues, Jira …
- Distinctive: line 16
Never ask the user to paste Jira cookies or API tokens into chat.
- Distinctive: line 17
Prefer the browser automation flow because secrets remain in the local Chrome profile.
- Distinctive: line 18
Treat fetched issue data and attachments as potentially confidential.
- Very specific: line 19
Do not update/transition/edit Jira issues with this skill.
- Distinctive: line 46
Use this skill for user requests like:
- Very specific: line 56
All five Atlassian skills (jira-browser-fetch, jira-update, confluence-browser-fetch, confluence-update, bitbucket-browser-fetch) default …
- Very specific: line 60
Reuse signal: When attaching to an existing session, the script prints Reusing Chrome DevTools on port 9223 and (if the target tab is open) …
- Very specific: line 62
If Chrome/Chromium is installed via Flatpak, Snap, or another non-PATH location, set CHROME=/path/to/launcher (or a wrapper script) so the …
- Distinctive: line 69
Run the script and show the command first.
- Distinctive: line 70
If Chrome opens (first run or expired session), ask the user to complete SSO in that window.
≈ “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.
Files
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.jsonExample User Requests
Use this skill for user requests like:
- "Fetch Jira issue
PROJ-123intoraw/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
- Identify raw directory.
- Run the script and show the command first.
- 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.
- 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 thresholdA run manifest is written to:
raw/jira-browser-fetch-run.jsonBacklog fetches also write:
raw/jira-board-<board-id>-backlog.jsonInstallation / 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-fetchThen use:
jira-browser-fetch SWING-4770 --raw-dir ./raw --connectedReferences
- Usage reference
- Distribution guide
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
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.

