Last active
February 1, 2026 00:42
-
-
Save darryllee/054c2704d6c34cd008957b902d4e51bf to your computer and use it in GitHub Desktop.
Export Workflow JSON
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 JSON API from current workflow page | |
| // Finds the workflow name in the page and opens the REST API endpoint 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 "View Workflow JSON" | |
| // * Click the bookmarklet when viewing a Jira workflow page | |
| 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 expand = '&expand=transitions.rules,transitions.properties,statuses.properties,default,schemes,operations'; | |
| var url = hostname + '/rest/api/3/workflow/search?workflowName=' + encodedName + expand; | |
| 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 x='&expand=transitions.rules,transitions.properties,statuses.properties,default,schemes,operations';var u=h+'/rest/api/3/workflow/search?workflowName='+e+x;window.open(u,'_blank');})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment