brian.berrelez Posted July 28, 2017 Share Posted July 28, 2017 I had a request today to provide a list of all reports that been deployed to our Jaspersoft Server. Is there a way that I can export all reports to a file or somehow connect to the Jaspersoft studio database and query them? I can easily do this is SQL Server Reporting Services however, this is a completely different animal.Thanks in advance! Link to comment Share on other sites More sharing options...
darth_fader Posted July 28, 2017 Share Posted July 28, 2017 The original version of the REST API supports this in its own unique way:GET /jasperserver/rest/resources/yourReportFolderName?type=reportUnit&recursive=1Will list out all report units currently on your server instance. So, you can plug this into the url http://yourjasperserver.com:8080/jasperserver/rest/resources/yourReportFolderName?type=reportUnit&recursive=1And you'll get xml output of all the report units in that folder. This is the only way I'm currently aware of. Link to comment Share on other sites More sharing options...
brian.berrelez Posted July 28, 2017 Author Share Posted July 28, 2017 I'm able to connect but I receive the following message:This XML file does not appear to have any style information associated with it. The document tree is shown below.<resourceDescriptors></resourceDescriptors>Do I need to do some additional configuration on the server? Link to comment Share on other sites More sharing options...
Solution darth_fader Posted July 29, 2017 Solution Share Posted July 29, 2017 No, but can you send along the url you're using and the root folder name containing your reports? I can see if anything's wrong there. You're successfully making the request might just be something slightly wrong with the url Link to comment Share on other sites More sharing options...
brian.berrelez Posted July 31, 2017 Author Share Posted July 31, 2017 Thanks for the help! I was able to access the information.<resourceDescriptor name="Addresses_Report" wsType="reportUnit" uriString="/organizations/d0042liv/Reports/Accounting/Addresses_Report" isNew="false">...</resourceDescriptor> Link to comment Share on other sites More sharing options...
darth_fader Posted July 31, 2017 Share Posted July 31, 2017 great news! Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now