This page explains in detail how to create a Graphviz diagram in Jira issue using an attachment that contains the required DOT code to generate the diagram. This scenario is helpful in cases where you have your DOT code in a text file and you want to use this file to generate a diagram in a Jira issue.
Steps
In the intended Jira new issue view:
- Click Attach from the menu options to attach the intended file with DOT code as a text file attachment to the issue.
- Click Graphviz from the menu options to see the Graphviz for Jira section.
- Click Graphviz from the menu options again or Add a Graphviz diagram in the Graphviz for Jira section to navigate to the Graphviz Diagrams for Jira window.
- Enter the following in the Graphviz Diagrams for Jira window:
Graphviz source attachment: Notice that the DOT code attachment is displayed in the options to select from. Select the attachment to add the respective DOT code as an input to the diagram.
If more DOT files are added to the issue, all of them are displayed as options to select from in this select list.
- Graphviz output attachment name: Nil.
- Layout: dot
Content: This entry is disabled once you select an attachment to generate the diagram from.
- Click Save to save the input details. The following output is displayed from the selected attachment:
The steps mentioned here are for the new Jira issue view. If you are using the old Jira issue view, replace step 2 and 3 with the following:
Click Add a Graphviz diagram in the Graphviz for Jira section to navigate to the Graphviz Diagrams for Jira window for further edits