Removing Remediate UI action from the Staleness Remediation Task
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 04:35 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 03:33 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 05:11 AM
Hello @Suvetha S
Yes please go ahead with this approach -
- Find the UI Action "Remediate" in the sys_ui_action table.
- In the condition field add the following script:
(current.getTableName() != 'cert_follow_on_tasks' || current.getTableName() != 'recommended_field_remediation' || current.getTableName() != 'stale_ci_remediation') - Save the UI Action.
- 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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-18-2023 06:05 AM
@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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-17-2023 06:54 AM - edited 10-17-2023 06:55 AM
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:
If my answer has helped with your question, please mark my answer as accepted solution and give a thumb up.👍👍