[Scroll Word Exporter] Is it possible to get list of space templates by spaces

Comments

9 comments

  • Avatar
    Cordula Schubert-Berker

    Hi Andrii,

    I am not quite sure if I understood the question correct but I'll explain how I see this: The templates for the Word exporter are not managed on space basis but global. As far as I know you cannot restrict an export template to be used in a specific space—it's all export templates or none for all spaces.

    The export templates can be found in the General configuration menu (top right corner next to the notifications) under the dividing headline "Scroll Word Exporter" in the category "Templates“ (pretty much at the end of the list of categories).

    Does this answer your question?

    Regards

    Cordula

    0
    Comment actions Permalink
  • Avatar
    Andrii Maliuta

    Hello Cordula Schubert-Berker .

    Thanks for trying to help.

    As I stated templates assigned to spaces, so I mean Confluence Scroll Exporter templates (that have export scheme configured and Word file added).

    Actually, there are 2 kinds of templates: Global level and Space level.

    Global ones are accessible in all Confluence spaces for export, but if you add a template to the space, it will be available just in this space and not vice versa.

    My question is more for Confluence administrators - the aim is to know what spaces of my Confluence contain configured Scroll Exporter templates and what not - as there is no one place to track them all as I know. If you have 1000+ spaces and 100+ templates it is hard to track what spaces have which templates.

    Thank you

    0
    Comment actions Permalink
  • Avatar
    Thomas Rough (K15t)

    Hi Andrii, we don't have an overview section/UI for all templates that have been created and therefore the global list and each individual space list will display the created templates in Confluence.

    Potentially, you could use the REST API calls for retrieving the list of templates in Scroll Word Exporter. However, please note that we use our own servlet container for our REST endpoints and therefore, this is a private API and subject to change without notice.

    For instance;

    • For global template list: GET <base-url>/plugins/servlet/scroll-office/api/templates
    • For space template list: GET <base-url>/plugins/servlet/scroll-office/api/templates?spaceKey=<space-key>

    Thanks, Thomas (K15t)

    1
    Comment actions Permalink
  • Avatar
    Andrii Maliuta

    Hello, Thomas Rough (K15t).

    Thank you for your guidance! This what we can use to find the templates!

    So we need to specify the <space-key> request parameter to get space templates and in such a way will have to loop through all the spaces of Confluence to find all space level templaets :(

    Could you please tell if there is a way not to loop through all the spaces and set something like "/plugins/servlet/scroll-office/api/templates/space" to get all space level templates as "/plugins/servlet/scroll-office/api/templates" is used for global ones?

    Thank you!

    0
    Comment actions Permalink
  • Avatar
    Thomas Rough (K15t)

    Hi Andrii Maliuta, yes, unfortunately you will need to loop through all the spaces of Confluence to find all space level templates. There is not a specific way to bring all these templates up in a single list and as mentioned, we currently don't have a UI in the app the overlays all this information. Kind regards, Thomas (K15t)

    1
    Comment actions Permalink
  • Avatar
    Andrii Maliuta

    Thomas Rough (K15t) thank you for the clarification!

    Will use the API that is available.

    Thank you for the help :)

    0
    Comment actions Permalink
  • Avatar
    Andrii Maliuta

    Hello Thomas Rough (K15t).

    Could you please tell if the REST API was extended somehow and we can get the SPACE level templates without a need to loop through all the spaces ?

    Thank you

    0
    Comment actions Permalink
  • Avatar
    K15t Team

    Hi Andrii Maliuta - thanks for the comment. Currently, there is not a way to get the templates from multiple spaces at once. Therefore, to get all the space level templates we'd suggest that you initially fetch all the space keys and then fetch the templates separately for each space. I hope this helps.

    Thanks, Thomas (K15t)

    0
    Comment actions Permalink
  • Avatar
    Andrii Maliuta

    Hello Thomas,

    Thank you for the quick response. Please let us know somehow in future if this becomes available.

    Thanks,

    Andrii

    0
    Comment actions Permalink

Please sign in to leave a comment.

Powered by Zendesk