Configure "Remove/Delete" Risk Action

Modified on Wed, 16 Aug, 2023 at 3:47 PM

It is possible to configure what the "Delete/Remove" action in risksheet toolbar perform. From hi-level perspective this action represent a need, to get rid of selected risk row.



You can configure the risksheet to perform 3 different options:


1) Delete Risk Work Item

by default it deletes the work item completely. You do not need to do anything if you have the default configuration, but for a reference, this can be also ensured by using "removeStrategy":"delete" in dataTypes configuration in risksheet.json.

 ...
  "dataTypes": {
    "risk": {
      "type": "risk",
      "removeStrategy":"delete"
    },
...

2) Reject Risk Work Item

second, popular, option is not to delete the Work Item, but mark is in a status as "rejected" (or any other status).

This can be  ensured by using "removeStrategy":"rejected" in dataTypes configuration in risksheet.json.

In addition to that you need to specify name of the workflow action (rejectedAction) that leads to your target workflow state (rejectedStatus) and the resolution you want to set (rejectedResolution)


 ...
  "dataTypes": {
    "risk": {
      "type": "risk",
      "rejectedAction":"reject",
      "rejectedStatus":"rejected",
      "rejectedResolution":"invalid",
      "removeStrategy":"rejected"
    },
...


3) Move to Recycle Bin

third, our favourite, option is an extension of the 2nd option. You want the work item to be rejected, and you also want to move it in document to recycle bin.

This can be  ensured by using "removeStrategy":"recycle_bin" in dataTypes configuration in risksheet.json.

In addition to that you need to specify name of the workflow action (rejectedAction) that leads to your target workflow state (rejectedStatus) and the resolution you want to set (rejectedResolution)


 ...
  "dataTypes": {
    "risk": {
      "type": "risk",
      "rejectedAction":"reject",
      "rejectedStatus":"rejected",
      "rejectedResolution":"invalid",
      "removeStrategy":"recycle_bin"
    },
....


4) Hide items from the grid (from version 23.7.7 )


specify in the dataTypes section items in what status should NOT be shown on the Risksheet. This applies both to Risk and Task data types.

...
"dataTypes": {
      "risk": {
         "type": "risk",
        "rejectedStatus":"rejected"
      },
...


Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article