Hello everybody,
how do I get a Dashboard by JavaCode. The Dashboard has already been created in JIRA and I want to access this dashboard. Is there any possibilities to get the dashboard by id or name.
An answer would help me to go on with the development of my JIRA Plugin.
Use PortalPageService.
Thx for the advice. I've already seen this Service. Can you give a Code Sample, please?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
ComponentAccessor.getComponent(PortalPageService.class).getPortalPage(new JiraServiceContextImpl(user), dashboardId)
Try this.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
how do I get/find the dashboard id?
I know it doesn't belong to the question above, but are there any event listener for dashboards? For example when you update an dashboard, an event will be triggered in the background.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK, the dashboard Id can be found in the URL as an URL parameter leading to your dashboard. This URL parameter is the selectPageId corresponding to your dashboard id.
E.g.: http://host/jira/secure/Dashboard.jspa?selectPageId=10201
Is there a possibility now to get all the gadgets with the portalpage-instance or do I need another approach?
It would be very helpful again if you show me a sample code.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.