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

RTC 4.0 - Using Parent - Child project areas - how do I get reports for the child project areas?

I see the shared reports in the "Master" project area but those folders are all empty in all the "Child" project areas. The "Child" project areas were created with the unstructured template which probably explains why they are not seed. With this type of setup how do I run reports for specific "Child" project areas?

0 votes


Accepted answer

Permanent link
 the little bit of code to do that in java is
                        processClient = (IProcessClientService) repo.getClientLibrary(IProcessClientService.class);

URI projuri = URI.create(projectAreaName.replaceAll(" ", "%20"));
IProjectArea iprja = (IProjectArea) processClient.findProcessArea(projuri, null, null);
IReportManager irptMgr = ((IReportManager) repo.getClientLibrary(IReportManager.class));
List<IReportDescriptor> missingreports = irptMgr.fetchMissingSharedReportDescriptors(
(IProcessAreaHandle) iprja.getItemHandle(), null);
System.out.println("there are "+missingreports.size()+" missing report definitions");
for (IReportDescriptor report : missingreports)
{
try
{
if(debug)
System.out.println("adding resport='"+report.getId()+"'");
irptMgr.saveReportDescriptor(report, null);
}
catch (Exception e)
{
System.out.println("adding report resporce failed for report="+report.getName()+ " exception="+e.getMessage());
return(false);
}
}
Donald Poulin selected this answer as the correct answer

1 vote


2 other answers

Permanent link
in Eclipse, expand the child project, expand reports, on report resources, right click, 
select Deploy New Resources, select the project (makes no sense to me) select the reports, push OK

| this makes it possible to RUN reports in the child.
| it does NOT roll up children to parent (we call it Anchor) project

0 votes


Permanent link
Hi Donald
You have to deploy the Reports from the Master project to the Child project. When Deploying report Eclipse or Web you can chose from what source. Select Master

This will create a linked copy of the Report.
Changes in the Master will be reflected in all Child automatically

Looks easier to me than coding :-)

erwin

0 votes

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
× 12,030

Question asked: Mar 18 '14, 12:24 p.m.

Question was seen: 4,389 times

Last updated: May 13 '14, 2:51 a.m.

Confirmation Cancel Confirm