It's all about the answers!

Ask a question

Setting Iteration programmatically for Burndown Widget


EclipseTalk . (32736161) | asked Dec 27 '13, 4:49 p.m.
edited Dec 27 '13, 4:50 p.m.
Hello,
Is it possible to set the BIRT Burndown widget's parameters? I'd like to set the Burndown widget chart parameter programmatically.
Thanks in advance for letting me know if this is possible. 

Accepted answer


permanent link
Rafik Jaouani (5.0k16) | answered Jan 02 '14, 2:42 p.m.
JAZZ DEVELOPER

You can fetch them like fetching any other item from the repository:

IItemManager.fetchCompleteItem(IItemHandle itemHandle, int flags,
            IProgressMonitor monitor) throws TeamRepositoryException;

To get an instance of IItemManager, use ITeamRepository.itemManager().


To create the itemHandle do the following:

IQueryDescriptor.ITEM_TYPE.createItemHandle(UUID itemId, UUID optionalStateId).

EclipseTalk . selected this answer as the correct answer

3 other answers



permanent link
Rafik Jaouani (5.0k16) | answered Jan 02 '14, 11:04 a.m.
JAZZ DEVELOPER

RTC does not expose APIs guaranteed to work in the future for setting report parameters. But if you can explain what you are trying to achieve may be there is a better way.

My guess is you are trying to make the Burndown widget automatically configure its self to always use the current iteration. This can be done by setting the Timeline parameter to ONE particular timeline and setting the Iteration parameter to the current iteration by clicking the "Current Iteration": check box.

This will work since timelines usually have only one current iteration.


Comments
EclipseTalk . commented Jan 02 '14, 11:20 a.m. | edited Jan 02 '14, 11:20 a.m.

 Thanks Rafik for your reply. I've created a small app to set a given iteration for a given project but I need an api to be able to set the burndown report parameters iterations. Even if the apis are not public could you please share them?

I'm trying to make the Burndown widget automatically configure itself; I need to select more iterations than the current iteration alone. Every two weeks, each team's burndown needs to set its current iteration (it can be set as you explain above) in addition to other iterations that might belong to the same release. For instance for a 2 week period, we might have sprint A, sprint B and sprint C to set in addition to the current iteration.
is this possible?
Thanks for your help.


Rafik Jaouani commented Jan 02 '14, 12:00 p.m.
JAZZ DEVELOPER

Is this app a client written in Java that uses the java client APIs?

Or is this a web ui written in javascript and HTML?


EclipseTalk . commented Jan 02 '14, 12:13 p.m.

I'm using the plain java client apis.

Thanks 


permanent link
Rafik Jaouani (5.0k16) | answered Jan 02 '14, 12:54 p.m.
JAZZ DEVELOPER

Check the method: com.ibm.team.reports.client.IReportManager.saveQueryDescriptor

To get an instance of a IReportManager, use ITeamRepository.getClientLibrary(IReportManager.class).


Comments
EclipseTalk . commented Jan 02 '14, 2:34 p.m.

How can I get a IReportQueryDescriptor instance if I know the query UUID?

Thanks,


permanent link
EclipseTalk . (32736161) | answered Jan 02 '14, 3:26 p.m.
 Thanks!

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.