It's all about the answers!

Ask a question

isArchived of Timeline(DevelopmentLine) always returns false


ast java (4512049) | asked Aug 07 '15, 1:49 a.m.
edited Aug 07 '15, 2:48 a.m. by Ralph Schoon (63.5k33646)
Hi,

I was trying to retrieve the value of isArchived of Timeline using RTC API but i noticed that even when the timeline is set to archived through the web client API always returns false.

Please let me know if the code i am using to retrieve the timeline is fine. Is there any other way of retrieving the value.
IDevelopmentLineHandle[] devLines = iprojectArea.getDevelopmentLines();
IDevelopmentLine developmentLine =
                auditableClient
                    .resolveAuditable(devLines[0] , ItemProfile.DEVELOPMENT_LINE_DEFAULT, monitor);
boolean isArchived = developmentLine.isArchived();

Accepted answer


permanent link
Martha (Ruby) Andrews (3.0k44351) | answered Aug 07 '15, 12:38 p.m.
JAZZ DEVELOPER
Try using ITeamRepository.getItemManager.fetchCompleteItem to retrieve the line if this is code running on the Eclipse client.

Ruby
Martha (Ruby) Andrews
Jazz Foundation L3 Development Team Lead
ast java selected this answer as the correct answer

Comments
ast java commented Aug 10 '15, 1:10 a.m.

Thank you:) using the code mentioned fixes the issue.

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.