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

Tangorine

Members
  • Posts

    2
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Tangorine's Achievements

Newbie

Newbie (1/14)

  • Week One Done
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. We need to enable/disable a job based on the last time it generated a report. However, the previousFireTime field in the Jobs API isn't updating when a report is generated outside of the job. 1. does anyone have a recommendation on the best way to get the timestamp of the most recent report generated? 2. what's the recommended way to toggle a job on/off via API? Thank you!
  2. Hello, when trying to use the Jobs service to search for jobs based on data from the full definition (jobModel object), the example provided in the documentation along with several other attempts to get it to work have failed. The example in the documentation of passing in {"outputFormat":"PDF"} as a url parameter fails. Everything is url encoded and I get the following error 400 Bad Request Couldn't parse JSON string: Unrecognized field "outputFormat" (class com.jaspersoft.jasperserver.api.engine.scheduling.domain.reportjobmodel.ReportJobModel), not marked as ignorable (29 known properties: "mailNotificationModel", "isUsernameModified", "isSourceModified", "isContentRespositoryDestinationModified", "triggerModel", "isLabelModified", "runtimeInformationModel", "username", "isTriggerModified", "baseOutputFilename", "outputFormats", "alert", "runtimeInformationModified", "repositoryDestinationModel", "isBaseOutputFileNameModified", "creationDate", "isOutputLocaleModified", "label", "isMailNotificationModified", "isOutputFormatsModified", "outputLocale", "description", "reportParameters", "outputFormatsSet", "sourceModel", "isDescriptionModified", "alertModel", "isAlertModified", "outputTimeZone"]) at [Source: (String)"{"outputFormat":"PDF"}"; line: 1, column: 18] (through reference chain: com.jaspersoft.jasperserver.api.engine.scheduling.domain.reportjobmodel.ReportJobModel["outputFormat"]) Any help is appreciated because this would allow us to find job IDs based on information in the full job definition. Thank you!
×
×
  • Create New...