Display Info /Error message in Project Workspace on planning Console on update of any field
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 04:38 AM
Hi All,
I am trying to display a error message on change of any field on project task in below Planning View on Project Workspace but it is not coming using a Business Rule . It works fine in native end though. Please find the below screenshot:
Business Rule Script : On update --Table Name : Pm_project_task
Script :
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2025 11:49 PM
UI policy with run script should be works other wise modify your business rule with this script
Type: Update
When to run : After
(function executeRule(current, previous /*null when async*/) {
// Skip if we're in a background operation or loading
if (current.isNewRecord() || gs.getEventName() == 'async') {
return;
}
// Check if we're in a workspace context
var isWorkspace = (typeof g_workspace !== 'undefined');
// Get all changed fields
var changes = current.getChanges();
// If any fields changed
if (changes && Object.keys(changes).length > 0) {
var errorMsg = "Changes to project tasks require approval. Please submit a change request.";
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-04-2025 06:32 AM
Unfortunately this is not working 😞
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2025 05:53 AM
Have you found any solution to this since? I'm facing the same problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-27-2025 06:34 AM
Hi @Attila Beregvar,
As earlier I said that UI Policy with Runscript should works and now I have taken a scenario with it and it is working fine in My PDI.
Scenario: Here I used on Incident form Impact is 1-High as a trigger condition to show the Error Message on SOW Workspace
UI Policy

Run Script

Testing on SOW: When I change the Impact to 1-High shows me an error message

I believe that if SOW workspace is working fine it works on other workspaces too.
