Share

Custom Reports

Custom reports are created by tenant administrators using Jaspersoft Studio. Once created, users access them in Upchain just as they would other reports.

Use pre-configured parameters to build your report from Upchain views. Parameter types are indicated by prefixes such as:

  • cr: Change Requests; for example, cr_requestor
  • proj: Projects; for example, proj_status
  • cn: Change Notices; for example, cn_number
  • com: Common views available everywhere in Upchain; for example, com_generatedBy

Requirements

To create custom reports, you need to:

  • Be a tenant administrator.
  • Install the free Community Edition (CE) of Jaspersoft Studio, available from https://community.jaspersoft.com/.
  • Know how to use Jaspersoft Studio. Check their Resources page for information on creating reports.

Create a Custom Report File

  1. In Upchain, click Profile > Administration > Custom Reports > Download default template.

  2. Save the template file, then double-click it to open it in Jaspersoft Studio.

  3. From the Outline browser on the left side of the Jaspersoft Studio application, drag and drop an Upchain template into the main Jaspersoft Studio window.

    outline

  4. (Optional) Edit the report as needed using Jaspersoft Studio.

    Tip: The report builder contains parameters and fields that correspond to Upchain data. Check Jaspersoft Studio’s Resources page for information on creating reports.
  5. When finished, save your report file.

(Optional) Add Upchain Parameters To a Report

  1. In Jaspersoft Studio, from the Basic Elements panel on the top right, click and drag the Text Field element onto the report page.

  2. In the Properties panel on the bottom right, click the Text Field tab.

    text tab

  3. In the Text Field tab, beside the Expression box, click Edit edit icon to open the Expression Editor.

    expression editor

  4. Double-click a parameter to use in the text field.

  5. (Optional) Edit the parameter using Java language; for example, you could make a value display in upper case:

    • Original parameter: $P(com_reportName)

    • Modified parameter: $P(com_reportName).toUpperCase()

      If you are comfortable with Java, Upchain supports more complex operations, such as if/else conditions.

  6. Click Finish.

(Optional) Add a Table To Your Custom Report

You can add tables based on Upchain datasets; for example, proj_members_dataset.

  1. In Jaspersoft Studio, from the Basic Elements panel on the top right, click and drag the Table element onto the report page to open the Table Wizard.

    table wizard

  2. Select Create a Table using an existing dataset.

  3. Select a dataset from the drop-down menu and click Next.

  4. In the Connection page of the Table Wizard, select Use a JRDatasource expression.

    table wizard

  5. Beside the expression box, click Edit edit icon to open the Expression Editor.

    expression editor

  6. Select an Upchain expression you want to use and click Finish.

  7. Proceed through the rest of the Table Wizard to customize the fields and layout for the table.

Upload Your Report to Upchain

Once you have created the report in Jaspersoft Studio, you can upload it to Upchain so other users can access it.

  1. Return to the Custom Reports page in Upchain and click Add Report.

    custom reports page

  2. In the Add Report dialog, enter a name for your report, then click Upload to upload the Jaspersoft Studio report file you created.

    add report dialog

  3. Set the output to PDF, and select the appropriate Location (view); for example, BOM view.

  4. Click Add.

The report is added to Upchain and can be accessed by users as a custom report.

Was this information helpful?