Reopen button on London release

kun1
Tera Expert

Hi team,

 

What's the difference between the Reopen button on London release and Jakarta release?

 

How we can see the reopen button on the incident form in London release?

Condition:-new global.IncidentUtils().canReopenIncident(current)

can some one please try to understand me this conditon?

 

Thanks!!

 

 

6 REPLIES 6

Mark Stanger
Giga Sage

Looks like they're using a script include to determine the conditions for that UI action now.  This is a good practice for when your conditions get too big or complex to fit in the single-line text 'Conditions' field on a UI action or Business rule.  You can see from your condition that the name of the script include is 'IncidentUtils' and the function is 'canReopenIncident'.  'IncidentUtils' is a customer-extensible version of the 'IncidentUtilsSNC' script include (which actuallly houses the 'canReopenIncident' function).  You can override the 'canReopenIncident' function with your own condition in the 'IncidentUtils' script include.  Here is the code that's restricting your UI action.

canReopenIncident : function(current){
	return current.incident_state == IncidentState.RESOLVED && !gs.getUser().hasRoles() && !this._isMajorIncident(current);
},

I created an incident and resolved it and closed it but i cannot see the reopen button ..

 

In the jakarta, Reopen incident button is visible to caller and assigned to but in london release, i am not able to see the reopen button(caller and assigned to).Please help!!

According to the script include function, the 'incident_state' needs to be resolved (a value of 6) and the user needs to have no roles (an ess user) and the incident isn't a major incident (only if you have the major incident app on).

If you want to override this you can copy the entire function code I've pasted above, modify it to meet your conditions, and then paste it into the 'IncidentUtils' Script include right underneath this line...

/***************Custom changes****************/

IncidentUtils , what needs to be added inorder to display the reopen button in icident form