Removing Remediate UI action from the Staleness Remediation Task

Suvetha S
Tera Contributor

Hi All,

I have a requirement to remove "Remediate" UI action from the Staleness Remediate task form. What is the best practice to achieve this? Please share your inputs.

8 REPLIES 8

If you want only on 'reconcile_duplicate_task' then the condition should be just like below without anything additional.

current.getRecordClassName() == 'reconcile_duplicate_task'

You should whitelist which tables you need in the condition field. If you blacklist with != condition then it will show on other task tables as well.

Hello @Suvetha S 

Yes please go ahead with this approach -

  1.  Find the UI Action  "Remediate" in the sys_ui_action table.
  2.  In the condition field add the following script:
    (current.getTableName() != 'cert_follow_on_tasks' || current.getTableName() != 'recommended_field_remediation' || current.getTableName() != 'stale_ci_remediation')
  3.  Save the UI Action. 
  4.  Clear the instance cache by typing cache.do in the application navigator.

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.

@Harsh_Deep Dont you think the above condition would become true for incident, change and other tasks tables? Because the ui action return on task table.

Harsh_Deep
Giga Sage
Giga Sage

Hello @Suvetha S ,

 

Please follow the below steps for your query-

 

1. Find the UI Action  "Remediate" in the sys_ui_action table.

2. In the condition field add the following script:

(current.getTableName() != 'cert_follow_on_tasks' || current.getTableName() != 'recommended_field_remediation' || current.getTableName() != 'stale_ci_remediation')

3. Save the UI Action. 

4. Clear the instance cache by typing cache.do in the application navigator.

 

Note-

Here are more details about the getTableName() API on the developer website:

getTableName()

 

If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.👍👍