Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Default Dashboard Mementos

Is there any reference materials for the "Name" of the mementos exposed for customization in a process template?

I've found a mention of the html property for an html widget, but how do I set the "Title" of widgets?  Is there a way to set the properties (mementos) of a Plan View widget?

2

0 votes


Accepted answer

Permanent link
Hi Carson,

You can prime the viewlet title in a process specification template using the "title" attribute on the "viewlet" element.
This works for all viewlet types.
For instance, the default title for the Feeds viewlet is "News Feed" which we override with "Jazz News":

<viewlet title="Jazz News" id="com.ibm.team.dashboard.viewlets.web.feed">
<preference id="url" value="http://jazz.net/pub/community/news/feed.rss?externalize=true"/>
</viewlet>

Unfortunately, the viewlet memento format differs depending on the viewlet type and is regarded as an internal implementation detail. As a result, the format isn't documented for the majority of our viewlets - even though it probably should be in order to support users who are configuring dashboard templates in the process.

Also, most viewlets don't even make use of mementos; but, rather rely on viewlet preferences or common viewlet definition attributes (such as "title"). The "Plan View" viewlet falls into this category - it only uses viewlet preferences to store it's data.

Viewlet data is stored as part of the dashboard resource and that data is virtually identical to what you would need to provide in a dashboard template in a process specification.
To eliminate the guess-work as to what data & format (preferences, mementos) a viewlet is specifying / utilizing, do the following steps:

(1) Create an empty dashboard
(2) Turn off  auto-save
(3) Add and configure the viewlet you are interested in adding to a dashboard template
(4) Open Firebug on Firefox & switch to the Net tab (or "Network" tab in "Developer Tools" on Chrome)
(5) Save the dashboard
      => You will see an HTML PUT request simlar to the following
             https://jazz.net/jts/dashboards/9137?contentType=application%2Frdf%25xml   
(6) Inspect the HTTP request payload to find the data persisted for the widget

e.g. HTML Viewlet

<jw:Widget rdf:nodeID="_1">
  <dc:type>com.ibm.team.dashboard.viewlet</dc:type>
  <jw:definition rdf:resource="https://jazz.net/jts/viewlet/com.ibm.team.dashboard.viewlets.web.static"/>
  <dc:title>HTML</dc:title>
  <jw:icon rdf:resource="https://jazz.net/jts/jfs/RegistryImage/com.ibm.team.dashboard.viewlets.web/graphics/static/icons/html.gif"/>
  <jw:memento>{"html":"test\n"}</jw:memento>
</jw:Widget>

e.g. Plan View Viewlet

<jw:Widget rdf:nodeID="_1">
  <dc:type>com.ibm.team.dashboard.viewlet</dc:type>
  <jw:definition rdf:resource="https://jazz.net/jazz/viewlet/com.ibm.team.apt.web.ui.internal.viewlet.PlansViewlet"/>
  <dc:title>Ranked List</dc:title>
  <jw:icon rdf:resource="https://jazz.net/jazz/jfs/RegistryImage/com.ibm.team.apt.web.ui/resources/internal/page/images/iteration_plan_default.gif"/>
  <jw:preferences rdf:parseType="Collection">
    <jw:Preference>
      <jw:name>_scopeItem</jw:name>
      <jw:value>_1w8aQEmJEduIY7C8B09Hyw</jw:value>
    </jw:Preference>
    <jw:Preference>
      <jw:name>_scope</jw:name>
      <jw:value>PROJECT_AREA</jw:value>
    </jw:Preference>
    <jw:Preference>
      <jw:name>com.ibm.team.apt.web.ui.planmodeviewlet.planItemId</jw:name>
      <jw:value>16;_iD62sHUUEd2ikOuycfrtCA</jw:value>
    </jw:Preference>
    <jw:Preference>
      <jw:name>com.ibm.team.apt.web.ui.planmodeviewlet.planModeItemId</jw:name>
      <jw:value>6;_1w8aQEmJEduIY7C8B09Hyw/com.ibm.team.apt.viewmodes.internal.backlog2</jw:value>
    </jw:Preference>
  </jw:preferences>
</jw:Widget>


HTH
Carson Holmes selected this answer as the correct answer

1 vote

Comments

Mike, 


In the example above the plan ID is "16;_iD62sHUUEd2ikOuycfrtCA". I'm guessing I won't be able to predict this in a process template when the plan is created during initialization.  So if this is true, I won't be able to configure the plan view widget in the process template.  Do you concur?

Thanks,
Carson


2 other answers

Permanent link
Hi Carson,

To change the name of a title, click the down arrow in the title bar, and then click Appearance:

  Appearance option

You can then change the name in the "Title" field.

Here is the documentation: https://jazz.net/help-dev/clm/topic/com.ibm.jazz.dashboard.doc/topics/t_configure_viewlet.html.

Hope that helps,

Jenn

0 votes

Comments

Thanks Jenn, but no that's not what I'm looking for.  I was looking for information on how to customize the default dashboard in a process template. 


Permanent link
Carson,

Ah okay...check out these topics then: https://jazz.net/help-dev/clm/topic/com.ibm.jazz.dashboard.doc/topics/t_config_dashboard_templates.html and https://jazz.net/help-dev/clm/topic/com.ibm.jazz.dashboard.doc/topics/t_config_viewlet_chooser.html.

Jenn

0 votes

Comments

Thanks Jenn.  Yes, I had found these references, but the only memento property they reference is 'html' and some sub-properties for bookmarks.  Surely, there must be a way to set more properties of these viewlets in the process template, but I can't find a more comprehensive reference.  I'm stuck with trial and error, changing the template, and then creating a project to test it. 

I am struggling with the same thing.  A full example would help.

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,162

Question asked: Mar 21 '13, 11:53 a.m.

Question was seen: 7,803 times

Last updated: Sep 23 '13, 5:49 p.m.

Confirmation Cancel Confirm