Last active
January 29, 2026 22:57
-
-
Save darryllee/5a45eb0b98adae9d77545b2c50537f52 to your computer and use it in GitHub Desktop.
Export Workflow XML
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Bookmarklet to open Workflow XML viewer from current workflow page | |
| // Finds the workflow name in the page and opens the XML viewer in a new window | |
| // | |
| // Installation: | |
| // * Create a new bookmark in your browser | |
| // * Copy the minified version from the file (the second javascript: line) | |
| // * Paste it as the URL/location of the bookmark | |
| // * Give it a name like "Export Workflow XML" | |
| // * Click the bookmarklet when viewing a Jira workflow page | |
| // | |
| // NOTE: Atlassian has no (official) mechanism for Importing XML Workflows anymore, so this is is probably only | |
| // useful for historical purposes | |
| javascript:(function(){ | |
| var div = document.querySelector('.css-oufe7k'); | |
| if (!div) { | |
| alert('Could not find workflow name on page'); | |
| return; | |
| } | |
| var workflowName = div.textContent.trim(); | |
| var encodedName = encodeURIComponent(workflowName); | |
| var hostname = window.location.origin; | |
| var url = hostname + '/jira//secure/admin/workflows/ViewWorkflowXml.jspa?workflowMode=live&workflowName=' + encodedName; | |
| window.open(url, '_blank'); | |
| })(); | |
| // Minified version for bookmarklet (copy the line below): | |
| javascript:(function(){var d=document.querySelector('.css-oufe7k');if(!d){alert('Could not find workflow name on page');return;}var w=d.textContent.trim();var e=encodeURIComponent(w);var h=window.location.origin;var u=h+'/jira//secure/admin/workflows/ViewWorkflowXml.jspa?workflowMode=live&workflowName='+e;window.open(u,'_blank');})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment