It's all about the answers!

Ask a question

How to access Work Item Custom Attributes in RPE Report Templates


Muktar Mohammed (1311924) | asked Oct 03 '12, 10:33 a.m.
 Hi there,

When viewing the Work Item Schema structure in RPE, custom attributes are not shown there.  How do I go about adding a specific custom attribute into the template?

Thanks.

Comments
Muktar Mohammed commented Oct 09 '12, 11:25 a.m.

Can anybody shade light on how to add custom attributes to a report template in RPE?


Thanks. 

One answer



permanent link
Geoffrey Rosenthal (10135) | answered Mar 27 '13, 7:59 p.m.
JAZZ DEVELOPER
The RTC work item schema provides queries based upon the type that the custom attribute actually is i.e. short/medium/long string extension, int extension, enumeration, etc.  Also note that there have been several improvements made to the work item schema from RTC 3.0.1 to present.  For example, take a look at:

https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=232011

In short, you must know the type of custom attribute as defined in your project.  Then there should be  corresponding query to that type in the work item schema as seen in an RPE template.  For each custom attribute type there are name/value pairs of queries, so you first search for the name of the custom attribute that you're looking for under the type node in the schema, then print its value via the value query.  I'll also note that native filters really improve generation performance and make your template work easier when you're trying to print a specific custom attribute.

Your answer


Register or 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.