hi,
I am creating Spaces and Pages programatically using the api.
Spaces and Pages are getting created.
I am able to view the pages in Tree structure.
However when i try to view the pages in alphabetical view , I get a message
' There are no pages starting with ''. '
Can anybody point out where am i going wrong ?
Thanks in advance.
Nikhil,
I think you've hit a bug -> https://jira.atlassian.com/browse/CONF-23269
Check space permissions, it might work if you grant "view" permission to your user or group on that space.
Hope it helps!
Hi Jeison,
Thanks a lot for the timely response.
Yes, your suggestions helped me a lot. I realized that the spaces created programatically didnt have any permissions set and hence the pages were not displayed in the Alphabetical View.
While creating spaces progrmatically, I added the following line.
Space targetDeliverySpace = new Space(); // Setting the space permissions SpacePermission sp = new SpacePermission(SpacePermission.VIEWSPACE_PERMISSION); sp.setSpace(targetDeliverySpace); targetDeliverySpace.addPermission(sp);
and after saving the space using SpaceManager , it worked ! :D
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.