cancel
Showing results for 
Search instead for 
Did you mean: 

Enforce default layout and dashlets

dpatri
Champ in-the-making
Champ in-the-making
Is there a way to enforce a different default layout, including specifying which dashlets to include? Right now the only dashlets that show up are the getting started and my tasks to do. I want to the user to be presented with a dashboard that is pre-configured with custom dashlets, without having to require the user to manually configure.
7 REPLIES 7

gavinc
Champ in-the-making
Champ in-the-making
No, not in the ideal way, you can pre-define which dashlets are present but these would be there permanently, so it depends on the flexibility you require.

You can override the config for the "default" layout and point it to your own custom JSP and in there manually add the dashlets you want to appear (copy and paste an existing layout JSP). So if you wanted a couple of dashlets there for every user this may be enough. To do this add the following config to your web-client-config-custom.xml file:


<config evaluator="string-compare" condition="Dashboards">
   <dashboards>
      <layouts>
         <layout id="default" columns="1" column-length="5" image="/images/icons/layout_single_column.gif"
                  label-id="layout_single_label" description-id="layout_single_desc"
                  jsp="/jsp/extension/my-single-column.jsp" />
      </layouts>
   </dashboards>
</config>

Alternatively, you could create your own custom layout as an additional option and educate your users that this is not a configurable. To do this simply use a unique id for the layout in the example above.

kevinr
Star Contributor
Star Contributor

bugg_tb
Champ in-the-making
Champ in-the-making
This link doesn't work, it says I don't have the privileges, can you enlighten me Smiley Happy
Also in slightly the same vein, is it possible to inject items into peoples todo list or similar, on a person or group level?
Cheers

Tom

kevinr
Star Contributor
Star Contributor
You might need to create a JIRA user to see the items, i'm not sure.

Anyway, this is the detail:


Configuration added for web-client to setup default dashlets shown in a user Dashboard on first login.

Config example as follows:
   <config evaluator="string-compare" condition="Dashboards">
      <dashboards>
         <default-dashlets>
            <dashlet id="getting-started" />
            <dashlet id="tasks-todo" />
         </default-dashlets>
      </dashboards>
   </config>

This client config can be overriden in the usual way to change the default Dashboard for new users when they first login.

Hope this helps,

Kevin

bugg_tb
Champ in-the-making
Champ in-the-making
Cheers for the reply kevin

Worked a treat, i've also set the column default to 2 columns, how do i define 1 dashlet to be in the left column and 2 in the right column?

Cheers

Tom

stk137
Champ in-the-making
Champ in-the-making
how do i define 1 dashlet to be in the left column and 2 in the right column?

is there a solution for this? 
(How to specify which default dashlets go in which column?)

kevinr
Star Contributor
Star Contributor
No there is no startup config to do this at the moment - we kept it simple for the first go. Raise a jira item and hopefully we'll get to it.

Thanks,

Kevin