Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • GGCE Server GGCE Server
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 39
    • Issues 39
    • List
    • Boards
    • Service Desk
    • Milestones
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • GGCEGGCE
  • GGCE ServerGGCE Server
  • Issues
  • #261
Closed
Open
Issue created Dec 07, 2021 by Matija Obreza@mobrezaOwner

Generating PDFs with JasperReport

This is to add support to generate reports on the server using JasperReports.

One Jasper report will receive one GG-CE "root entity". Let's take OrderRequest as an example.

The Jasper report file/code will be stored in the file repository in path reports/OrderRequest with name packinglist.???. The admin may upload additional report "templates" to this folder or update existing ones.

API updates

  1. Extend CRUDController with GET /report/list to get the list of report templates stored in the file repository for this entity. The method returns List<RepositoryFile>.
  2. Extend CRUDController with POST /report/generate/{reportTemplate} that receives the name of the Jasper report (in file repository) and a set of entity Long ids from the client. The service will load the list of entities (in a read-only transaction) and return the PDF generated by Jasper for the provided entities.
Edited Dec 07, 2021 by Matija Obreza
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking