Is it possible to export a Jira workflow diagram and display it in a confluence page?
Asked by Autumn Stibich:

I need to export a Jira (cloud) workflow and display the diagram in a confluence page. This behavior does not appear to be native using the existing workflow or XML export and I'm having trouble finding an app that will allow me to show the diagram in Confluence. Dynamically syncing with the workflow in Jira would be a plus and allowing interaction with the workflow to expand out transitions would be even better.

Any options out there?


Answers:
author: Ravi Sagar _Sparxsys_
body: Hi [@Autumn Stibich](/t5/user/viewprofilepage/user-id/4455518)

This would be a cool thing to do but there is no feature to export a workflow and display it in a page.

Some of the information related to the workflow can be fetched using REST API, take a look at this [page](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-workflow-transition-properties/#api-group-workflow-transition-properties). So the only way I can think of is to create a page using a script and use Jira REST API to get whatever details we can fetch for a workflow. On Jira server using Java APIs we can get a lot of information related to a workflow but not on cloud.

Ravi

comments: author: Autumn Stibich
body: Thank you, Ravi - much appreciated. I ended up taking a screenshot and imbedding the image in my Confluence page.

For anyone else that finds this question, the Glass app

[https://marketplace.atlassian.com/apps/1219628/glass-project-documentation-for-jira?tab=overview\&hosting=cloud](https://marketplace.atlassian.com/apps/1219628/glass-project-documentation-for-jira?tab=overview&hosting=cloud)

allows export of the workflow text (not the diagram unfortunately) along with other project level details which may work for some.


author: Daniel Lizik
body: Hi Ravi, so you think it would be possible to create a confluence plugin that displays the workflow on a page? I often get questions from people without access to see the entire workflow graph about the status transitions. It would be very helpful to be able to spit out the static SVG on a page somewhere.


author: Bal?zs Szak?l _META-INF_
body: Hi [@Autumn Stibich](/t5/user/viewprofilepage/user-id/4455518) ,

Im the creator of the Glass apps! :)

Currently Workflow images can not be extracted from Jira Cloud through API or any legit way (on premise its working). What we could do is to rebuild the whole image from the transition information we gathered. This would be a bigger effort to implement, but feel free to vote on this idea in our [ideabox](https://metainf.roadmapper.app/glass/view/0) or contact our support!


author: StingyJack
body: The workflow diagrams are displayed as SVG, which is a graphics format that probably all browsers support. The differernce between conventional images and SVG is that SVG diagrams will look like HTML.

So for JIRA cloud, when you are viewing the workflow you can right click on it and choose inspect element. In the window that opens, scroll up until you see an \`\<svg\` tag. Right click that and choose copy element, then paste it into a text file and save it with an \`.svg\` extension. You can now double click to open the file and it should launch in a browser and show the diagram. Some adjustment to the height, width, and viewport may be needed depending on how you want to show it.

comments: author: Ai Tran
body: Thanks, this worked for me.


author: ALICE CAUDY
body: Hi,

An another suggestion : display workflow with smart link ou import workflow in whiteboard.

Thanks,  
Alice.


Tags: cloud

confluence-cloud