-- Migration Doctor snapshot, SQL export: installed apps (plugin keys) used to attribute workflow rules to apps. -- Read-only: a single SELECT, no writes, no temporary tables. Output: one JSON object per line. -- Run (read-only) with the mysql client and save the output as plugins.jsonl: -- mysql --batch --raw --skip-column-names --default-character-set=utf8mb4 -h DBHOST -u READONLY_USER -p JIRADB < plugins.sql > export/plugins.jsonl -- Needs MySQL 5.7.8 or newer (JSON_OBJECT). -- Then pass the export directory to the snapshot script: --sql-export-dir export (bash) or -SqlExportDir export (PowerShell). SELECT JSON_OBJECT( 'key', pv.pluginkey, 'name', pv.pluginname, 'version', pv.pluginversion) FROM pluginversion pv ORDER BY pv.pluginkey;