Nodes as Building Blocks for Custom Reports

The report editor lets you design and structure reports tailored to your needs. This page explains the existing nodes: The foundational building blocks of Custom Reports.

Find the technical documentation of the nodes here.

Structure of a Custom Report

The report is organized as a hierarchical tree of nodes. Each node is enclosed between curly braces {} and classified by type.

Node Types

Description

Example node

Explanation

Node Types

Description

Example node

Explanation

Text

Allows you to display plain text with customizable styles. For example, you can adjust: font size, color, and alignment.

{ type: 'text', text: 'Welcome to Custom Reports!', style: { fontSize: 16, marginBottom: 20, lineHeight: 1.5, color: '#555', }
  • fontSize: sets the size of the font

  • text: enter the text here

  • marginBottom: sets the bottom margin of an element

  • lineHeight: specifies the height of a line

  • color: sets the color of the text

Link

Allows you to create clickable links. Customize the URL and the text.

 

{ type: 'link', href: 'https://example.com', style: { color: '#0052CC', } { type: 'text', text: 'Click here for example',
  • href: the url that the link is pointed at

  • color: sets the link color

 

SVG

Displays scalable vector graphics. Adjust the size, colors, and other properties to create custom visualizations.

 

{ type: 'svg', src: '/app/assets/images/illustrations/appfire-icon.svg', style: { 'path.fill': '#000', 'path.stroke': '#000', }
  • src: path to the svg location

  • class: CSS classes from provided stylesheet or stylesheet node

  • style[]: Styles defined in JS-CSS style

Image

Displays images from a URL. You can adjust the size and add alt text for accessibility.

  • src: Interpolated property for the image source

  • alt: alt-text to improve accessibility

  • class: CSS classes from provided stylesheet

Progress

Displays progress bars. You can customize the appearance and behavior to show completion status.

 

  • variant: circular, linear

  • value: Value to display

  • minValue: Minimum progress value

  • maxValue: Maximum progress value

  • background: Show background

  • backgroundPadding: specifies the origin position of a background image

Chart

Displays data in graphical form. You can create bar, line, and area charts to visualize information. The PieChart node is also available for proportion-based data.

  • options[]:

    • chart[]:

    • cartesianGrid[]:

    • legend[]:

    • xAxis[]:

    • yAxis[]:

    • tooltip[]:

  • data[]:

    • categories: List of categories for the x axis

    • series:

      • chartType

      • name

      • stroke

      • fill

      • label

      • data

Table

Allow for structured data display. Customize columns and rows to fit your needs.

  • class: CSS classes from provided stylesheet or stylesheet node

  • style[]: Styles defined in JS-CSS style

  • path: JSON path for the selection, it must be an array

  • columns[]:

    • header: String representing the title header in the table

    • accessor: JSON path expression to access the data in EACH row

    • cell[]: Child nodes, customizing the body of the cell to any structure

List

Lists display items from an array. Customize the appearance and layout to suit your report.

  • item[]: Child nodes

  • class: CSS classes from provided stylesheet or stylesheet node

  • style[]: Styles defined in JS-CSS style

REST

Fetches data from an API. You can specify the URL and customize the data display. You can also create datasources to reuse configurations or to protect credentials. See Configure a REST API datasource for Custom Reports.

  • uri: property to form the uri

  • refresh: Active mode: refresh on any change or wait for submission

  • id: rest id

  • path: JSON path applied to the downloaded data

  • method: Rest method to use: GET is the default

  • headers[]: REST headers

  • queryParams[]:

  • children[] Child nodes

Confluence®, Jira®, Atlassian Bamboo®, Bitbucket®, Fisheye®, and Atlassian Crucible® are registered trademarks of Atlassian®
Copyright © 2005 - 2024 Appfire | All rights reserved. Appfire™, the 'Apps for makers™' slogan and Bob Swift Atlassian Apps™ are all trademarks of Appfire Technologies, LLC.