It's all about the answers!

Ask a question

RTC API IIteration.getIterationType always returns null

ast java (45642) | asked Aug 07 '15, 2:00 a.m.
edited Aug 07 '15, 2:48 a.m. by Ralph Schoon (61.8k33643)

I had created a iteration type and set the iteration type to the Iteration through web client. When i try retrieving the same from RTC API it returns null. How to get the IterationType of an iteration.

Please let me know if the code i am using is correct.
IIterationHandle[] iterations = developmentLine.getIterations();
IIteration iteration = auditableClient.resolveAuditable(iterations[0] , ItemProfile.ITERATION_DEFAULT, monitor);
IIterationTypeHandle iterationTypehandel = iteration.getIterationType();

iterationTypehandel is always null even when iterationtype is set.

One answer

permanent link
ast java (45642) | answered Aug 10 '15, 1:11 a.m.
using repo.itemManager().fetchCompleteItem
instead of auditableClient.resolveAuditable fixes the issue

Your answer

Register or to post your answer.