By default, you see the whole Risksheet, which can become cluttered if you have many different columns. Sometimes, you don't need to see all of them.
This feature allows users to specify and save column sets on the Risksheet. This enables users to view only selected columns instead of the entire Risksheet. This feature offers flexibility in viewing and customizing the Risksheet according to project needs.
TABLE OF CONTENTS
Configure the views
The saved views can be created in the Configuration under the “Views” section. After that, users can select the desired view from the Risksheet.
To define specific sets, you should add them in the Configuration in the "views" section.
"views": [ { "name": "Potential Failures", "columnIds": [ "item", "failureMode", "effect" ] }, { "name": "No Mitigations", "columnIds": [ "@all", "-task", "-taskTitle", "-taskStatus" ] } ],
After that, you'll be able to select these sets on the Risksheet.
Example views
Show only specific columns - Potential Failures
In the configuration, we've created a set called "Potential Failure" and added 3 column IDs that should be visible when selecting this set.
And you'll get the Risksheet view like this:
Show all columns, except a few of them - Mitigations
In this case, it would be better to first define to show @all columns, and then specify the IDs of the specific columns that must be hidden.
In our case, it is all Mitigation columns.
As an expected result, it shows all the columns except the Mitigation section.
Default view
Starting with version 24.1.0, you can set the default view that will be shown when opening Risksheet.
In the views configuration, add:
{
"name": "bar",
"defaultView":true,
....
Or in the risksheetTopPanel.vm you can use a script to set the default view based on the current context (user, data ...)
<script> risksheet.appConfig.views[1].defaultView=true; </script>
Users can use the full Polarion API, for example, in the example below we check if a user has an 'admin' user role, and if so, invoke the second view:
<script> #foreach($r in $securityService.getRolesForUser($securityService.getCurrentUser())) #if($r.equals("admin")) risksheet.appConfig.views[1].defaultView=true; #end #end </script>
These are samples of using this new feature. Of course, you can create a wide variety of custom sets to fit your project needs.
Select Visible table columns
Of course, it is also possible to choose what columns to show with the use of the "Select Visible Table Columns" option.
But you may want to have some specific column presets, so you don't need to mark/unmark each column, but just select the desired configuration.
For any assistance, please don’t hesitate to reach out by submitting a ticket here.
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article