Jump to content
We've recently updated our Privacy Statement, available here ×
  • Copy resources to another organization in Repository


    stasp
    • Version: v4.5

    Issue:

    [toc on_off::hide=1]

    Currently, in JasperReports Server v4.5.0 and prior, there is no direct way to copy resources (reports, dashboards, input controls, etc) from one organization to another organization on the same level. This feature is planned to be implemented for future releases, but at the moment you cannot directly do this neither via Repository UI, nor using Import/Export utility.


    Resolution:

    For example you have reports in organization_1 (default organization) and you need to copy reports from here to a new organization (lets call it org_2) on the same level. What you need to do is:

    1. In organization_1 create a new folder, for example ToCopy. You will need to copy all resources as one folder in order to have all resource references to be updated automatically. If you do not do this, resources (like reports, input controls, dashboards, etc.) will point to other resources (like report query, bundles, images, input controls) in organization_1 even after you copy everything into org_2. For most resources you'll still be able to update the references manually, however it may get a real nightmare for large number of resources. Also, some references, like input controls on Dashboards, cannot be manually updated at all, and you'll need to create dashboard from scratches. This is way you need to copy all resources in one operation as one folder.

    2. Put all folders you want have in org_2 into this ToCopy folder. Make sure to cut and paste all the folders into this one, NOT copy and paste. This will ensure that all the references of resources are updated to the new location. You can restore folder structure later as it was.

    3. Log in as superuser. Copy this ToCopy folder into Folder Template directory of organization one level above (for organization_1 it will be root organization)

    4. Create a new org_2 on the same level as organization_1. It should have all resources which you copied to Folder Template, and all references should be updated automatically.


    Limitations:

    A workaround proposed here requires user to create a new organization. It is good when you need to create a new organization with resources from an existing organization.

    However if you already have an organization with pre-existing structure and resources, and you just need, for example, to copy a couple of new reports into this org, this article will not be much helpful.


    Ref. Case #00024466 -- 13:23, 1 March 2012 (UTC)  


    User Feedback

    Recommended Comments

    There are no comments to display.



    Guest
    This is now closed for further comments

×
×
  • Create New...