How hanif-mianjee/jira-ticket-copier works
This Manifest V3 Chrome extension adds JIRA-page actions for copying ticket details, links, and search results, and exports tickets and sub-tasks to Markdown with optional attachments. Its main workflow detects a configured page, injects UI, reads ticket data, then copies or exports it. The graph preserves the documented toolbar weekly search and settings capabilities. Source excerpts show the injection and export orchestration; some connections rely on the SOURCE INDEX or README, so unsampled behavior is not expanded beyond those references.
Main entry points: export.js Ticket exporter · content.js Content injector · clipboard.js Clipboard actions · storage.js Settings storage
Components 24
JIRA Page Features
- JIRA page DOM
- Page selectors
src/config/selectors.js - Content injector
src/content.js - Action buttons
src/ui/buttons.js - Status dropdown
src/ui/dropdown.js - Issue list reader
src/core/issue-list.js
Markdown Export
- Ticket exporter
src/core/export.js - JIRA REST client
src/core/jira-api.js - Ticket normalization
src/core/issue-model.js - Rendered issue reader
src/core/issue-dom.js - ADF Markdown renderer
src/core/adf-to-markdown.js - ADF inline renderer
src/core/adf-inline.js - ADF table renderer
src/core/adf-table.js - Markdown utilities
src/core/markdown-utils.js - Attachment handling
src/core/assets.js - Attachment prompt
src/ui/export-modal.js - Browser downloads
Shared Services
- Clipboard actions
src/core/clipboard.js - Settings storage
src/core/storage.js
Toolbar and Settings
- Toolbar popup
src/popup/popup.js - Weekly filter builder
src/popup/weekly-filter.js - Extension settings
src/options/options.js
Other components
- JIRA user
- JIRA search
Connections 30
- JIRA user → JIRA page DOM: opens
README.md - Content injector → Page selectors: matches
src/content.js - Content injector → JIRA page DOM: observes and injects
src/content.js - Content injector → Settings storage: reads settings
src/content.js - Content injector → Action buttons: creates actions
src/content.js - Content injector → Issue list reader: reads results
src/content.js - Action buttons → Clipboard actions: invokes copy
src/ui/buttons.js - Action buttons → Ticket exporter: invokes export
src/ui/buttons.js - Action buttons → Issue list reader: invokes list copy
src/ui/buttons.js - Status dropdown → Settings storage: reads statuses
src/ui/dropdown.js - Clipboard actions → Settings storage: reads formats
src/core/clipboard.js - Clipboard actions → JIRA REST client: fetches missing summary
src/core/clipboard.js - Issue list reader → Clipboard actions: copies results
src/core/issue-list.js - Ticket exporter → JIRA REST client: fetches issue bundle
src/core/export.js - Ticket exporter → Ticket normalization: normalizes payload
src/core/export.js - Ticket exporter → Rendered issue reader: reads rendered issue
src/core/export.js - Ticket normalization → ADF Markdown renderer: renders description
src/core/issue-model.js - ADF Markdown renderer → ADF inline renderer: renders inline nodes
src/core/adf-to-markdown.js - ADF Markdown renderer → ADF table renderer: renders tables
src/core/adf-to-markdown.js - ADF Markdown renderer → Markdown utilities: formats output
src/core/adf-to-markdown.js - Ticket exporter → Attachment handling: saves attachments
src/core/export.js - Ticket exporter → Attachment prompt: prompts for attachments
src/core/export.js - Ticket exporter → Settings storage: reads and writes preferences
src/core/export.js - Ticket exporter → Clipboard actions: copies export path
src/core/export.js - Attachment handling → Browser downloads: requests downloads
- Ticket exporter → Browser downloads: downloads Markdown
src/core/export.js - Toolbar popup → Weekly filter builder: builds search URL
src/popup/popup.js - Toolbar popup → JIRA search: opens weekly search
README.md - Extension settings → Weekly filter builder: configures filter
src/options/options.js - Extension settings → Settings storage: configures settings