Programmatically export JIRA workflow XML

Dmitri Barski March 17, 2014

Hi all,

I am trying to find a way to programmatically export a JIRA workflow to an XML file. I have written an (external) script which transforms the XML into a visualizable form, but as of now it needs a manual action to log into JIRA and export a workflow to XML... Is there any programmatic way to get the XML?

Thanks in advance

Best regards

Dmitri

1 answer

3 votes
Boris Georgiev _Appfire_
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 17, 2014

You can use

com.atlassian.jira.workflow.WorkflowUtil.convertDescriptorToXML(WorkflowDescriptor)

if you need to do the export from a plugin

or

call the following URL from a script:

/secure/admin/workflows/ViewWorkflowXml.jspa?workflowMode=live&workflowName=Simple+Issue+Tracking+Workflow

Alain Lompo April 30, 2020

With Jira 8, trying to call this necessitates first to authenticate and then to webSudoAuthenticate.

Suggest an answer

Log in or Sign up to answer