Error in Business Rule Execution for List View Modification

Sirisha Thota
Tera Contributor

Hi Community,

We are encountering an issue with a business rule when modifying fields in the list view. Below is the business rule we have written:

 

function executeRule(current, previous) {
    var grStoryState = new GlideRecord('rm_story');
    grStoryState.addQuery('sys_id', current.story);
    grStoryState.query();

 

    if (grStoryState.next()) {

 // If not in pending discussion state

        if (current.state != 6) {
            grStoryState.u_pending_discussion_with = '';
            grStoryState.u_meeting_scheduledd = '';
        }
        // If not in hold state
        if (current.state != 22) {
            grStoryState.u_state_reason_explanation = '';
        }
        grStoryState.update();
    }

})(current, previous);

 

 

When we try to modify the field in the list view, we get the following error:

"Condition 'Condition: current.product.changes() || current.project.changes()' in business rule 'Set Product Backlog Type' on rm_story: STRY001234 evaluated to null; skipping business rule."

 

Could you please help on this?

13 REPLIES 13

The project field is not available and used in the condition that could be the reason for the error.

 

So please remove the project from the condition and then test it.

Keep only this condition "current.product.changes()" and remove the other condition. and try

Hi Anil,

 

But It is OOB, we can't modify the OOB BR

Understood from my understanding it is the cause, to confirm that update the BR in Dev and test it and revert back  the changes.

 

Once you can confirm it is the issue then  raise High portal case for the same.

Hi Anil,

 

I tried, it is working in DEV environment