state not update

Vaibhav Ramteke
Tera Contributor

Hello,

Im creating ebonding of problem in servicenow instance both side problem create and update all fields update but the only is State(life cycle) is not change.

Ex. In A create/update to B create/update in this process all work short description, description work note, all 
just only state New-> Assess work but remain state not work as usually in A side state as normally work but my issue is when in A  New->Assess->Root cause->Fix in progress->Resolved->closed 
this all not update only new->assess work 

this is regarding problem ebonding issue 

im stuck here
 

6 REPLIES 6

Vaibhav Ramteke
Tera Contributor

im using Business rule

yashkamde
Giga Sage

Hello @Vaibhav Ramteke ,


Probably ServiceNow's problem table has an ootb state model with mandatory field validation per state. moving past assess requires certain fields to already be populated:

Check that by running this in background script :

var gr = new GlideRecord('problem');
if (gr.get('number', 'PRBxxxxxx')) {
    gs.print('Current state: ' + gr.getValue('state'));
    gs.print('Cause notes: ' + gr.getValue('cause_notes'));
    gs.print('Fix notes: ' + gr.getValue('fix_notes'));
    gs.print('Resolution code: ' + gr.getValue('resolution_code'));
}

 

If my response helped mark as helpful and accept the solution.