You have two methods to create a shared block:
Creating a Shared Block
- By the "Settings -> Job Report Templates -> Shared block" menu to create a new block
- By converting an existing category/item in a report template to a shared block.
To create a shared block, you must click on "Settings -> Job Report Templates"
Creation of a new block
Then you need to click the "Shared Blocks" tab
Choose a name (1) and click the "Add" button (2)
Click the name of your block created to add items to it
From there, you simply add the item or items you want like a classic job report (see Custom Job Report).
Once finished declaring items in your block, you make it usable by clicking the button "Publish" (1).
From that moment on, you can then add it to one or more job report templates.
To convert a category/item in block have to click on "Settings -> Job Report Templates"
Converting a category/item in block
Click the name of the desired job report template
Locate category/item you want to convert and click the "Actions"
Then click "Convert To Shared Block"
Category/item is then automatically converted to shared block
This new block is now available in any job report template and on new jobs.
To use a shared block in a job report template, you must click "Configuration -> Job Report Templates"
Using a shared block
Then click the name of the job report template in which you want to add a shared block
Click on the drop down list "Add shared block"
Click the block you want to add (1) or type its name in the search box (2)
The block is automatically added. It remains for you to configure.
This procedure is the same if you create a new job report template.
When you add a shared block in a job report template you have the ability to set two value, MIN and MAX. These settings play on the display of the block and the possibility of repeating it (back-office and mobile).
Configuring a shared block
The MIN value to specify how many times the block must be displayed on the job report without the possibility of removing it.
The value MIN
The MAX value to specify how many times you can add the block on the job report. These added blocks can also be deleted.
The value MAX
Once you've set these values, click the "Action" button (1) and click "Save" (2).
With the "Action" menu, you can also edit or remove the shared block.
If you choose "Edit", you are automatically directed to the block edit page.
If you choose "Remove", a dialog box ask you to confirm the deletion of shared block of the job report template.
To edit a shared block, you must click "Configuration -> Job Report Templates"
Editing a shared block
Click the tab "Shared Blocks"
Then click the name of the block you want to edit
You can then edit the block as you wish. You can also see which job report template that block is already in use.
WARING, all changes to a published block will be taken into account only by jobs created AFTER the modifications took place.