I would like to know if there’s a method to duplicate a current Jira Dashboard using the REST API. Alternatively, is it feasible to build a new dashboard from the ground up?
An alternative way is using browser extensions or 3rd-party Jira apps. Some tools can backup & restore dashboards. They might not be officially supported but can be useful for this task if you need a more straightforward approach without using REST API. Just gotta make sure they’re trustworthy and comply with your security policies!
Certainly, duplicating a Jira dashboard via the REST API isn’t directly supported. However, you can achieve this indirectly. Firstly, use API calls to fetch the existing dashboard’s widgets, gadgets, and preferences. Once you’ve got this information, you can create a new dashboard and manually configure it to match the original using that data. Of course, this requires some scripting capabilities or supplementary tools to streamline the process, but it’s definitely a viable solution if you’re willing to put in the effort.
From my experience, another approach without using the REST API involves manually duplicating the configuration. Although time-consuming, this method ensures you have full control over the specifics. Start by exporting the current dashboard’s settings via the Jira UI, if permitted by your setup, then input those settings into a new dashboard. Remember that while manual duplication can be tedious, it allows customization at each step, potentially leading to a better-optimized dashboard tailored to your evolving needs.