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

What is the best way to fetch all the iterations in a hierarchical manner ?

What is the best way to fetch all the iterations in a hierarchical manner ?

Currently I am iterating over all the development lines and fetching iterations. For projects which have a lot of iterations, say around 1000, it takes around 10 minutes to fetch all the iterations.
Is there a better way to do this?

0 votes

Comments

PS: the question is pretty fuzzy and almost incomprehensible. There is basically not enough information about what you do, how and why. The initial tagging with agile does not tell anything. I am assuming that this is somehow around automation, but that might be far fetched. If you want useful information in response, put useful information into your question.

Hi Ralph,

Say I have an iteration:

Iteration 1
- Sub iteration 1
- - next sub iteration 1
Iteration 2
- Sub iteration 2
- - next sub iteration 2

My first expectation is that I should get the output in the same structure. For this as of now I have created a TreeNode class which returns me this result.

And then to fetch the iterations, I iterate over development lines which is retrieved through :
IDevelopmentLineHandle[] developmentLineHandlers = pa.getDevelopmentLines();

I retrieve iterations from all the development lines through:

IIterationHandle[] iterationHandle = developmentLine.getIterations();
....
....

But if I have a lot of iterations it takes very long. So I wanted to know if there is some other better approach to do this..



One answer

Permanent link
In general, especially for API's never have expectations. What you think is most efficient in a specific use case you have does not necessarily represent anything that is efficient for the tool. For example, the API is optimized to act as a UI and not to be easy for a automation developer.

I have published the code I usually use for iterations here: https://rsjazz.wordpress.com/2012/10/05/handling-iterations-automation-for-the-planned-for-attribute/

The code is used in some of the automation I have done. Not sure anymore what it was. I also created some helper classes. Usually the challenge is to have text and map it to the real objects in the tool.

It is still unclear why you want to do this, so no idea.

The structure is

IDevelopmentLine 

IIterationhandle = IDevelopmentLine.getIterations() // The top level iterations
IIterationhandle.getChildren() // Nested inside an iteration

0 votes

Comments

10 minutes sounds way too long. Not sure why it should take so long. You could look into resolving multiple objects to be more efficient. As long as we don't know where the time is spent in the API I don't see how we could look at that.

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
× 10,938

Question asked: Apr 18 '16, 1:00 a.m.

Question was seen: 2,385 times

Last updated: Oct 18 '16, 10:42 a.m.

Confirmation Cancel Confirm