Removing a specific version

Comments

9 comments

  • Avatar
    Roman Serazhiev

    Hi Pavel,

    if you would like to delete the page from all versions and move it to a space trash, follow the steps from the "Delete all version of a page" section: https://help.k15t.com/scroll-versions/latest/remove-a-versioned-page-147030655.html#id-.Removeaversionedpagev3.9-Deleteallversionsofapage. Step #2 is what makes the page be completely removed from all versions.

    Does this help?

    Roman.

     

    0
    Comment actions Permalink
  • Avatar
    Pavel (Edited )

    Hi, Roman!

    No Roman, no.

    I do not want to delete the page from all versions and move it to a space trash.

    if author has rights  Author (see https://help.k15t.com/scroll-versions/latest/roles-and-permissions-147036760.html) he can only Removing a specific version.

    Removing a specific version does not delete the version, but hides it from users. The title is grayed out in the navigation tree, and the page will not be available in the working version (or versions based on it).

    How can I search such pages? How can an administrator (Doc-Admin) delete them?

    Do you suggest looking for  such pages manually or delete the pages with version?

     

    0
    Comment actions Permalink
  • Avatar
    Roman Serazhiev

    Pavel,

    those pages have to be manually retrieved by a doc-admin and removed. Unfortunately, Versions doesn’t provide a report of all marked as removed pages.

    Could you please share why marking a certain page as removed is not enough for you?

    Roman.

    0
    Comment actions Permalink
  • Avatar
    Pavel (Edited )

    Hi Roman!


    Could you please share why marking a certain page as removed is not enough for you?

    1. We use DEACTIVATE THE PUBLIC VIEW (https://help.k15t.com/scroll-versions/latest/deactivate-the-public-view-140542515.html

    2. When there are many versions in space , there will be many such pages. It is unuseful and uncomfortable.

    How can I search such pages via REST? What is marked for removed pages?

     

    0
    Comment actions Permalink
  • Avatar
    Pavel (Edited )

    Hi Roman!

    I can get  such pages via REST:

    GET THE PAGE DETAILS OF A VERSIONED PAGE 

    You can get the Confluence page ID, page title, change type, and additional information of a versioned page using the following POST request:

    POST [confluence_base_url]/rest/scroll-versions/1.0/page/<spaceKey>

     Sample response for such a page 

    {
    "available": false,
    "cached": false,
    "changeType": "Remove",
    "confluencePageId": 216629534,
    "confluencePageTitle": ".Test v1.7",
    "converted": false,
    "includedScrollPageIds": "",
    "isDirty": false,
    "lastModificationDate": 1539245810375,
    "lastModifier": "user",
    "pageType": "change",
    "plainConfluenceTitle": "Test",
    "scrollPageId": "0ACB3D0401666232F1427F5D4712CEB5",
    "scrollPageTitle": "Test",
    "spaceKey": "ASRU",
    "targetVersion": {
    "i18nName": "version 1.7",
    "id": "0A6573030164D1D8AF05507C0C2917AB",
    "name": "1.7",
    "versionId": "0A6573030164D1D8AF05507C0C2917AB"
    }
    }

     "changeType": "Remove" - This attribute?

    0
    Comment actions Permalink
  • Avatar
    Roman Serazhiev

    Pavel,

    try "com.k15t.scroll.versions.change-type":"Remove". This worked for me, let me know if it works for you.

    Roman.

    0
    Comment actions Permalink
  • Avatar
    Pavel

    Hi Roman!

    How to try? "com.k15t.scroll.versions.change-type":"Remove"

     

    0
    Comment actions Permalink
  • Avatar
    Roman Serazhiev

    Hi Pavel,

    you can do a POST request to [confluence_base_url]/rest/scroll-versions/1.0/page/<spaceKey> with this body:
    [{"queryArg": "com.k15t.scroll.versions.change-type", "value": "Remove"}]

    The response should provide a list of pages marked as removed.

    Roman.

    0
    Comment actions Permalink
  • Avatar
    Pavel

    Hi Roman!

    Excellent!
    Thanks!

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk