Jump to content
Changes to the Jaspersoft community edition download ×

How can we download output generated by a scheduled report on daily basis through rest APIs?


shubhi.mittal

Recommended Posts

I am using Jasper server 5.0.0 hosted on AWS.

My requirement is that I have scheduled multiple report jobs in jasper on Daily, weekly and monthly basis. I need to write a API call to jasper in which i can give it a job _id and get a list of all output files that got generated by that job. Eventually i want to store those files on Amazon S3.There seem to be no such API.

Is there any way by which i can download all the files generated by a job everyday?

This seems to be a general requirement where we need to download the outputs of a scheduled job. Please suggest if I can use some other API or is that problem solved in higher versions of jasper server.

I am looking at jasper server web services guide for reference.

Link to comment
Share on other sites

  • Replies 7
  • Created
  • Last Reply

Top Posters In This Topic

My Problem is that i need to download the reports on daily basis. Lets say 100 jobs are scheduled for different client which generate 100 files daily. I want to download only the files that get generated today skipping all previous files. Is there something link a output creation date that jasper keeps so i can only download those.

Can you suggest a work around this.

Link to comment
Share on other sites

  • 3 weeks later...

I have found two methods to download a reports ouput:

1) we can make a PUT request to run the report using REST APIs. It responds with a UUID, then GET the report output using this UUID.

2) we can use rest_v2 Get report service to run the report and generated output at the same time and save that output with us.

 

My problem is that, i have Scheduled all jasper jobs using REST API Web services. jasper scheduler will run those reports for me at specified time with specified input controls and store its ouput in specified output folder uri. How do i download the report outputs from that folder later on. I do not have to re run the reports , i just need to download the reports from the output folder.

 

Is there some API call through which i can download all the .pdf or .xlsx files from a folder in jasper. Or Do i have to get a list of all files first and then download one by one. Is it even possible to download output files without running the report. Its like downloading all contentType resources from a folder.

 

if nothing of this sorts is possible, then i can configure jasper server to write output files to some filesystem. I would prefer to do it throught APIs though.

 

Please share some documentation link along with answer. I would appreciate any kind of help on this.

Link to comment
Share on other sites

  • 8 months later...
  • 2 years later...
  • 1 year later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...