Part 7 - Creating the team resourcing page
Overview
The team resourcing page lists all the subprojects and shows the list of members involved in each subproject.
In addition, the e-mail address for the most immediate contact person is shown in the final column.
For this project, 2 user groups are created
pmd-project-leaders - all the project leaders involved in the project
pmd-project-members - all the project members involved in the project
Suppliers used
When to use the Collection Supplier
Use the object supplier if you are unsure of the object type. Pair any key with an object:class
keychain and it will return the type of object, for example:
data:Project Members > object:class
returns
class java.util.ArrayList
This means the Project Members Scaffolding data is stored as an Array List.
This keychain is useful for debugging purposes.
Content and Structure
Set the main structure of our report, which is a table.Â
create a report-table macro
Next, define what to report. This is done by
adding a content-reporter block
nesting this block inside the report-table block
edit the content-reporter block to set
Types toÂ
+pages, -attachment
Labels toÂ
subproject
Scope toÂ
Cafe Rockettoria Projects > children
Reporting only fetches pages labeled as subproject and is a children of Cafe Rockettoria Projects. The use of -attachment
 means that attachments are excluded.
In the content-reporter block
insert a text-sort block
edit the text-sort block
typeÂ
content:title
  for Keychoose 'ascending' for Order
This sorts the pages in ascending order based on the page title.
Now we are ready to setup the report columns.
Project Name
Within the report-table block
insert a report-column macro underneath the content-reporter block
name this column Project Name
insert a report-info block inside this report-column
edit the report-info block
name the KeyÂ
content:title
check Link To Item
Project Status
insert a report-column macro
name this column Project Status
insert a report-info block inside this report-column
edit the report-info block
name the KeyÂ
data:Project Status
Project Leader
insert a report-column macro
name this column Project Leader
insert a report-info block inside this report-column
edit the report-info block
name the Key
data:Project Leader
Project Members
insert a report-column macro
name this column Project Members
insert a report-info block inside this report-column
edit the report-info block
name the KeyÂ
data:Project Members
set Separator toÂ
newline
This displays the name of each team member in a new line.
Contact
insert a report-column macro
name this column Contact
insert a report-info block inside this report-column
edit the report-info block
name the KeyÂ
data:Project Leader > collection:first  > user:email
The Project Leader Scaffolding data block returns a list of users
the first item in the list is fetched (there is only one project leader in this perspective)
the user's email is returned based on the users profile page