Jump to content
We've recently updated our Privacy Statement, available here ×

guido_s

Members
  • Posts

    2
  • Joined

  • Last visited

guido_s's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. This has hit the nail So its the array "reportParameter" I was missing. Spassiba, thanx very much!
  2. given this request: {{url}}/rest_v2/reportExecutions?j_username=jasperadmin&j_password=jasperadmin[/code]with the aim to produce a pdf of a report with the following as JSON payload: { "reportUnitUri": "/reports/Work/Worklog", "async": false, "freshData": true, "saveDataSnapshot": false, "outputFormat": "html", "interactive": false, "ignorePagination": false, "parameters": { // also tried as containing an array with name/value pairs accoring to the example XML paylaod "REPORT_PERIOD_START" : ["2018-01-01"] , "REPORT_PERIOD_END" : ["2018-01-31"] }}[/code]I do get a 200 response, but an empty result, which would happen if the input controls were not set properly, and the report would use its default values (which would result in no data) Same report does the expected if using {{url}}/rest_v2/reports/reports/Work/Worklog.pdf?REPORT_PERIOD_START=2018-01-01&REPORT_PERIOD_END=2018-01-31&j_username=jasperadmin&j_password=jasperadmin[/code]So the report itself does not inhibit the PDF result. I wasn't able to find a proper example of the json representation, how parameters are supposed to be passed. I also tried using, {{url}}/rest_v2/reports/reports/Work/Worklog/inputControls/REPORT_PERIOD_START;REPORT_PERIOD_END/values/?j_username=jasperadmin&j_password=jasperadmin&accept=application/json[/code]alas, to no avail. Is anyone able to spot, what I am doing wrong with passing the parameters (REPORT_PERIOD_*) ?
×
×
  • Create New...