How can I create the Notes wiki page during plan creation on server side?
![]() Hi, I'm developing a initialization follow up in order to create some pre-defined plans. I'm using something like this in order to create a plan:
private void createPlan(ProjectArea projectArea, String name, ITeamAreaHandle teamHandle,IIterationHandle iteration, String type) throws TeamRepositoryException{
It seems to works and the plan is created, but it miss the first wiki page called Notes. This causes a problem when I try to open the plan on a browser. In this case the plan cannot be open and this error is given:
TypeError: Cannot read property 'length' of undefined
Using Eclipse client instead I can correctly open it. How can I create the Notes page? I've try to create new IWikiPages but they are attached as other pages and not as notes. Thanks, Michele |
Accepted answer
![]() Have you read my forum entry and my code snippet?
https://jazz.net/forum/questions/82381/how-do-i-create-a-plan-with-the-java-api
See section in the code:
Michele Pegoraro selected this answer as the correct answer
Comments The line wiki.setWikiID(IIterationPlanRecord.OVERVIEW_PAGE_ID); resolved the problem, togheter with a two step save: first I save the plan and then I add the notes. Otherwise as I try to set the plan itself as the owner of the note I got an error. Thanks, Michele. |