Portfolio for Jira allows teams to plan their future pipeline of work effectively. While managing issues, project managers will often assign issues to teams. Unfortunately, these teams cannot be displayed in dashboard gadgets. The Portfolio for Jira 'Team' field is not a fully supported field. It cannot be added to agile boards, or to dashboard gadgets, to quickly answer questions such as, which team currently has the highest workload? Atlassian currently have this as an outstanding issue in their public backlog (JPOSERVER-1847).
One of our clients tasked us with finding out if anything could be done about the situation. Here's what we did.
We set up a special custom field which drew information from the Portfolio teams field, allowing users to edit in information in only one place, yet having the best of both worlds - available in both Portfolio and in dashboard gadgets.
The following add-ons were used to enhance the functionality of the existing Team field:
Choose Add New Item » > "Custom Script Field".
Fill out all the relevant details.
Add the following code for inline script:
You should end up with a configuration looking like this:
From the scripted fields screen, click the cog wheel next to 'Team' and configure Context.
As scripted fields can be performance heavy, adding the field to all projects is not recommended. Best practice recommends restricting scripted fields to only necessary projects and issue types.
We've tested this script at load with 300,000 issues, running Jira Data Center 7.3 on 3 nodes without any issue.
Restrict the field to necessary issue types and projects only.
Find the relevant field and click the cog wheel > Edit.
Change the search template to "Exact Text Searcher (natural)".
Once reindexing is complete, the new field is ready to use.
The 'Team' field is now available in gadgets:
and can be queried with JQL, like any other field:
If you're interested in learning more about how our team at GLiNTECH can help you take Portfolio for Jira to the next level, or scaling up your enterprise instance of Jira, don't hesitate to get in touch.