Show or hide external widgets with enabled property
dashboardWidgets@enabled
This is a boolean field that can be expressed with JSP expression language (JSP EL). If this field evaluates true to the current dashboard, the widget will be available on the Add Widget pop-up.
The expression will be evaluated against the current project. On user dashboards, the current project is null. Any ProjectDto attributes (e.g., id, name, etc.) can be used.
Since the project's name is unique and the id can change when using Project Configuration Deployment from a source system to a target, writing an expression to the name could be a good candidate to filter external dashboard widgets.
Valid expressions for the Add Widget pop-up:
• "enabled": "true" - widget will appear in every case
• "enabled": "false" - widget will never appear
• "enabled": "${name eq null} " - only for user dashboards
• "enabled": "${name eq 'Intland Software's Default Template'}", - only for the given project (single quotes have to be escaped with a double backslash)
• "enabled": "${(name eq null) or (name eq 'Intland Software's Default Template')}", - for user dashboards and the given project's dashboards (project and tracker)
itemDetailsWidgets@enabled
This is a boolean field that can be expressed with JSP expression language (JSP EL). If this field evaluates true to the current external widget, it will be displayed on the item details view among the "Details" section's tabs.
The expression will be evaluated against the current item's tracker. Any TrackerDto attributes (e.g., id, name, type, etc.) can be used.
• "enabled": "true" - widget will appear for every tracker item
• "enabled": "false" - widget will never appear
• "enabled": "${id == 1337 and name == 'Test' and type == 'Task'}" - tracker attributes used in expression
Tracker types
"Area", "Bug", "Change Request", "Component", "Configuration Item", "Contact", "Epic", "Issue", "Platform", "Release", "Requirement", "Risk", "RPE Report", "Task", "Team", "Testcase", "Testconf", "Testrun", "Testset", "Work Log" (aka.: Time Recording), "User Story"
documentViewWidgets@enabled
Same as itemDetailsWidgets@enabled.