Server Side - prevent an API from being able to have the calculated priority.

Pooja Khatri
Tera Contributor

Hi All ,

 

I have a requirement where , I need to prevent an API from being able to have the calculated priority be Sev0.

and it will be done if we implement the below logic

 

In a single payload, Impact cannot be 1 - High (value = 1) and Urgency cannot be High (value = 1) at the same time.

 

If Incident Impact is already set to 1 - High and Urgency is set to Medium High or Normal, do not allow the payload to set Urgency to High

 

If Incident Urgency is already set to High and Impact is set to something other than 1 - High , do not allow the payload to set Impact to 1 - High

 

How can I implement the logic which will restrict the API from setting these values.

4 REPLIES 4

SnowReece
Tera Expert

Write a business rule that follows your logic and then in the condition add the following

!gs.getSession().isInteractive()

This will ensure the business rule only executes when triggered by an integration.

Hi @SnowReece - can you please help me with the Business rule ?

Show me what you have tried so far. You can always split this in to three easy to configure business rules rather than a single complex one.

Hi @SnowReece - please check your personal message , I have dropped you a message .