When a Project has its Project Name changed, any Resource Allocation Daily records do not have their Name changed as well.


Description

When a Project has its Project Name changed, any Resource Allocation Daily records do not have their Name changed as well.

Cause

Our Product team has mentioned that this is the expected behavior currently as updating the names of all the Resource Allocation Daily records could have a massive performance impact.

Resolution

As a workaround, you could implement a new Business Rule on the pm_project table such as the following:

When: before
Update: true
Filter Conditions: Project Name | changes
Script:


(function executeRule(current, previous /*null when async*/) {

var gr = new GlideRecord('resource_allocation_daily');
gr.addEncodedQuery('task=' + current.sys_id);
gr.query();
while(gr.next()) {
gr.name = current.short_description;
gr.update();
}

})(current, previous);

 

 

 

Be aware that this would be considered an unsupported customization.