Propose Major incident Option should not available for P3,P4, and P5. This should available only for P1 and P2 incidents. How to achieve this ?

S Deva
Tera Contributor

To achieve this We have to write condition in MajorIncidentTriggerRule script include which is extended by MajorIncidentTriggerRuleSNC OOB. Can anyone please let me know that how to give the condition for if not P1 and P2 return False ?

 

 find_real_file.png

7 REPLIES 7

Can you share what you tried

Propose Major incident Option should not available for P3,P4, and P5. This should available only for P1 and P2 incidents. How to achieve this ?
can to explain clearly how to achieve this

Hi @MohammadSameena ,

 

You need to copy the "canProposeMIC" function from the "MajorIncidentTriggerRulesSNC" Script Include.

Paste the "canProposeMIC" function into the "MajorIncidentTriggerRules" Script Include.

 

Then as per the your requirement add the following code to the "MajorIncidentTriggerRules" Script Include:

 

if (current.priority == 3 || current.priority == 4) {

    return false;

}