Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Live template
templateTypetemplate
templateOption{"label":"StepbyStep Guide cloud ready","value":"477609390","templateType":"template"}
templateTypeOption{"label":"Confluence template/blueprint","value":"template"}
templateId477609390
excerptLet's create a simple table populated with data and then generate simple charts using that data. This tutorial uses a combination of macros from the following apps Scaffolding Forms and Templates macros Reporting macros Ingredients Apps Scaffolding, Reporting for Confluence, Chart (Atlassian) Macros Number Data, Table Data, Text Data Guide Begin by creating a dynamic table which allows a user to enter data. create a Table Data macro set name as " tableLog " Inside that Table Data macro , create a table with two columns and two rows . add header row - “Assignee” and "Time Logged" create a Text Data macro under the " Assignee " column set the Field Name parameter to " developer " type to " line " Content Type to " wiki " create a Number Data macro under the "Time Logged" column set the Field Name  parameter to " hours " check  Allow decimal values You should now have something that looks like this: Let's create a pie chart with numbers provided by the dynamic table we created above. add a Confluence Chart macro set the Content Orientation parameter to " vertical " Within the Chart macro add a Report Table macro In this Report Table macro create a Local Reporter macro set the Key to " data:tableLog " Still within the Report Table macro create a Report Column macro set the Title to " colDeveloper " In the colDeveloper   Report Column macro create a Report Info macro set the Key to " data:developer " Now back within the Report Table macro create another Report Column macro set the Title to " colHours " Within the colHours Report Column macro create another Report Info macro set the Key to " data:hours " You should now have something that looks like below. choose Save On the saved page choose  Edit Contents fill in some data view the results Notes Try playing around with the Chart macro parameters to change the pie chart into a bar chart or a time series chart. Result User-Provided Data Assignee Time Logged Assignee Time Logged Ziana 10 Justin 5 Hashimi 8 Muhtadi 1 Dave 9 Generated Pie Chart
fieldGroupKeys{"si61t55hmx":["net.customware.confluence.plugin.scaffolding__si61t55hmx__data_0_yndw10ag65fz6gslo2iv"]}