This page explains in detail how to create a Graphviz diagram in a 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 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:
- Create diagram from: Select Import an existing diagram from an attachment.
Graphviz source attachment: Notice that the issue attachment is displayed in the dropdown options. Select the attachment to add the respective DOT code as an input to the diagram.
All the files attached to the issue are displayed as options to select from in this select list.
- Layout: dot.
- Graphviz output attachment name: Nil.
- 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