Comments

3 comments

  • Avatar
    Roman Serazhiev

    Hi Sasha.

    Could you please describe your use-case on why you would like to version all pages in a space?

    The page becomes version from the point either it is first edited or converted to a versioned page using a Versions menu. For example, if a page hasn't changes from version 1.0 to 3.0, but changed in 4.0, then editing an unversioned page in 4.0 would achieve the same result as versioning this page in 1.0, and the modifying it in 4.0.
    Also, when page becomes versioned for the first time, it get's duplicated. So, if you version all 1400 pages, you would have 2800 in this space (of course half of them would be hidden). When user edits a page in a new version, a new copy of this page is created. That is why we have a concept of a fallback: https://help.k15t.com/scroll-versions/latest/glossary-112919376.html#id-.Glossaryv3.1-InheritanceandFallbacks.

    Cheers,
    Roman.

    0
    Comment actions Permalink
  • Avatar
    Sasha Sobbe

    Hi Roman, 

     

    We are in the middle of a migration from one server to another. Due to the number of spaces and overlapping space keys, individual space imports were not feasible. To port the spaces over we published them to new - unversioned - spaces on the other server. Now all our content is there and writers are enabling versions but all the content is "unversioned" it will be exceptionally time consuming to version every page in over 150 spaces. 

    0
    Comment actions Permalink
  • Avatar
    Roman Serazhiev

    I understand that there's a lot of manual actions to do that for 150 spaces. You could automate the process with private REST API or Scroll Versions (not supported). What you need to know for converting an unversioned page to a versioned page with REST API is the space key of the space the page is in, the confluence page id of the page and the version you want to convert it to.

    Use this endpoint to convert an unversioned page to a versioned one: 
    <baseUrl>/rest/scroll-versions/1.0/page/<spaceKey>/<scrollPageId>/convertToVersioned?versionId=<versionId>

    To get versionId of the space:
    <baseUrl>/rest/scroll-versions/1.0/versions/<spaceKey>

    You can get the ScrollPageId of a page by calling:
    <baseUrl>/rest/scroll-versions/1.0/page/<spaceKey>/<confluencePageId>
    There you get a page object containing the id.

    I hope this information helps you to create a script for bulk assignment.

    Cheers,
    Roman.

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk