Loading...
Loading...
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.
npx skill4agent add aholbreich/agent-skills jira-browser-fetchscripts/jira-browser-fetch.js ISSUE-KEY [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.jsonPROJ-123raw/https://example.atlassian.net/jira/software/c/projects/ABC/boards/42/backlog?epics=visiblejira-browser-fetchjira-updateconfluence-browser-fetchconfluence-updatebitbucket-browser-fetch~/.local/share/atlassian-browser-chrome9223Reusing Chrome DevTools on port 9223Found existing tab for <host>CHROME=/path/to/launcherATLASSIAN_CHROME_PROFILEATLASSIAN_CHROME_DEBUG_PORT*_CHROME_PROFILE*_CHROME_DEBUG_PORTscripts/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'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 thresholdraw/jira-browser-fetch-run.jsonraw/jira-board-<board-id>-backlog.jsonmkdir -p ~/.local/bin
ln -sf ~/.pi/agent/skills/jira-browser-fetch/scripts/jira-browser-fetch.js ~/.local/bin/jira-browser-fetchjira-browser-fetch SWING-4770 --raw-dir ./raw --connected