Tangorine Posted May 9 Share Posted May 9 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! 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