How can I get the currentIteration from a server-side participant?
I can get the IDevelopmentLineHandle from the project are of the work item, but then I hit issues getting down to the currentIteration:
IDevelopmentLineHandle devLine = ipa.getProjectDevelopmentLine();
IDevelopmentLine dev = (IDevelopmentLine)itemService.fetchItem((IItemHandle)devLine, null);
IIterationHandle ciHandle = dev.getCurrentIteration();
IIteration iter = (IIteration)itemService.fetchItem((IItemHandle)dev, null);
..that last line gives an error so I can't actually get the information for the currentIteration.
Accepted answer
2 other answers
also, just the picky in me... fetchItem() takes a list of properties or RepositoryItemService.COMPLETE if all
I know RepositoryItemService.COMPLETE= null.. but
Comments
also, you do source level debug your plugins, right? SO much easier..
I start ny server in debug mode all the time, then use an Eclipse remote app debug profile, and make changes from web or other eclipse so that I can walk thru the code and look at variables.. better than system.out.println to the console or looking in the log
Yes, only one timeline per project area. And yes, I run them in Jetty while developing so that I can look at variable, println them, etc.
Also when I put RepositoryItemService.COMPLETE in for the properties, I get that the usage is discouraged because it is Internal.
and dev is not null? (handle of current iteration in the project timeline.)
from the UI is there a 'current iteration' in that project's project timeline? (check the properties of the timeline)