Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Is it possible to run BIRT reports like Cron job or program?

Hi,

Is it possible to get BIRT report results as pdf format.

Without running BIRT report manually (ex. like cron job or programmatically).

Thanks in Advance

0 votes



One answer

Permanent link
Hi,

Sorry for the delay. When we do the export to PDF from the Web UI, we end up calling com.ibm.team.reports.service.internal.IReportViewerService. You can do this yourself from your cron script. The service sets the appropriate content-type on the response. There are a number of parameters to pass in:

__format=pdf (yes, that's two underscores).
__projectAreaUUID=xxx (pass in the UUID of the project area containing the report)
__ownerUUID=xxx (pass in the UUID of the contributor who is making the request)

Then, there are two options.

(1) You already have a Report saved with the correct parameters, etc. In that case, pass:

__queryUUID=xxx (pass in the UUID of the report (not the report template) that you want to render).

(2) You don't have a Report saved with the correct parameters, etc. In that case, pass:

__reportUUID=xxx (pass in the UUID of the report *template*)
param1=val1
param2=val2 (pass in the report parameters and values by name dynamically for that report)

The call is authenticated the same as all other calls so you'll need to be able to handle either basic or form auth from your script.

Let me know if you have any further questions about this.

james



0 votes

Comments

Hi James,

Can I use the command above to generate the report and save it to a file directly, without getting the Save As dialog or do I need to use the reportrunner program?
Any sample you could share would be appreciated.
Thanks, 

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 11,053

Question asked: May 14 '12, 1:55 a.m.

Question was seen: 6,713 times

Last updated: Mar 14 '13, 3:08 p.m.

Confirmation Cancel Confirm