ITSM - Simulator - Configure state choice list and behavior

ShriyaA
Tera Contributor

Hi Team,

I am going through ITSM simulator. While validating, I am getting an error as - "Validate that you have updated the Create Emergency Change UI action for the appropriate table and with the appropriate script changes".

I tried checking existing incident and change records still the issue persists.


Module - Configure state choice list and behavior.


Kindly anyone can help me in this.

 

Regards,
Shriya

1 ACCEPTED SOLUTION

Rupesh_SN
Giga Guru

Hi Shriya,

 

Step 1) Please go through Incident Form-->Context Menu -->Configure--> UI Action and then search and open "Create Normal Change" for the incident table.

Please add this line in the script section - current.state=4;

Click Update button.

 

 

Step 2) Please go through Incident Form-->Context Menu -->Configure--> UI Action and then search and open "Create Emergency Change" for the incident table.

Please add this line in the script section - current.state=4;

Click Update button.

If this answered your question, please mark it as correct and helpful.

 

Regards, 

Rupesh

View solution in original post

8 REPLIES 8

JuneU
Tera Contributor

I've tried adding current.state=4;  but I am not sure that I have it in the right place as the state is not changing to awaiting change when a change is created from an incident.   

Can you be more specific about its placement? 

Hi @JuneU,

 

Kindly follow the below steps accurately. you will get it at right place. 

Step 1) Please go through Incident Form-->Context Menu -->Configure--> UI Action and then search and open "Create Normal Change" for the incident table.

Please add this line in the script section - current.state=4;

Click Update button.

 

 

Step 2) Please go through Incident Form-->Context Menu -->Configure--> UI Action and then search and open "Create Emergency Change" for the incident table.

Please add this line in the script section - current.state=4;

Click Update button.

If this answered your question, please mark it as correct and helpful.

 

Regards, 

Rupesh

I tried this all but was not able to validate the task.  I created the new UI action, and put the current.state==4 in the condition field.  I dont know where to put into the Script field.

 

And details are welcomed.

 

Farah

I added this to line 25 in the Create Emergency Change

if (!stdChgCatalogActive) {
        current.rfc = sysId;
        current.state = 4;
        current.update();
        var incUrl = "<a href='" + current.getLink(true) + "'>" + current.getDisplayValue() + "</a>";
        gs.addInfoMessage(gs.getMessage("Emergency Change {0} created from {1}", [changeRequest.getValue("number"), incUrl]));
    }