An increasing number of JIRA issues require the setting up of links across several hierarchical levels, resulting in a plethora of issues.
You can create this type of organisation with the help of some add-ons. Exocet, for example, provides operations for issue creation and tables listing links between issues. However, none of the existing solutions provide a single view of the whole picture. If we imagine a 3-levels issue architecture, when positioned on the 3rd level issue, a link towards the 2nd level issue will be displayed (provided by JIRA or enriched with Exocet), but we won’t have any more information about the 1st level issue.
To fill this voide, let’s see how to create a dynamic ‘breadcrumb’. It will display a hierarchical view of the issue and so allow you the access to the “parents” issues.
How to create a breadcrumb ?
To illustrate this case, we will take the example of expense report management :
For an ongoing IT project, a consultant can create one or several expense reports. For each one of them, the expense type will have to be specified (Restaurant, Parking, mileage expenses and so on).
From a conceptual point of view, this is what we obtain :
Create your issues hierarchy
3 issues will be used to demonstrate this use case :
- Issue WPM-27 with “Project” type will be our “level 1” :
- Issue WPM-28 with “Expenses Report” type will be our “level 2” :
- Issue WPM-30 with “Mileage expense” type will be our “level 3” :
These issues are linked as follows :
- WPM-28 is WPM-27’s “Expense report” :
- WPM-30 is WPM-28’s expense type :
Exocet tables are configured :
- An “Expense report” table displays the expense reports created for this project.
- An “expense type” table displays the list of expenses for each expense report.
Create and configure a Scripted Field custom field
Create a “Navigation Path” custom field with “Scripted Field” Type and add it to the project’s screenviews.
Then, in the “Scripted Field” menu, associate the following script to the field you’ve just created :
How to use your breadcrumb
Then, your breadcrumb appears in your issue’s view and is now working in level 2 and level 3 issues.
- Example in the level 2 :
You can now access issue WPM-27 from issue WPM-28 :
- Example in the level 3 :
You can also return to issue WPM-27 or to issue WPM-28 from issue WPM-30.
Linked issues hierarchically organised
This is a very simple example to implement in your JIRA instances to obtain the view of the extent of the linked issue and to allow your users to browse quickly and simply between issues.
Does this match one of your needs ? Feel free to try it and share your feedback and suggestions in the comment box!