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

Setting Iteration programmatically for Burndown Widget

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. 

0 votes


Accepted answer

Permanent link

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

0 votes


3 other answers

Permanent link

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.

0 votes

Comments

 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.

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?

I'm using the plain java client apis.

Thanks 


Permanent link

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

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

0 votes

Comments

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

Thanks,


Permanent link
 Thanks!

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
× 324
× 23

Question asked: Dec 27 '13, 4:49 p.m.

Question was seen: 4,634 times

Last updated: Jan 02 '14, 3:26 p.m.

Confirmation Cancel Confirm