Bypass Risk Assessment for certain change ticket conditions

JPing
Tera Expert

Hello, 

 

We have the Change Risk Assessment plugin that make sure the user submits a Risk Assessment questionnaire before moving the ticket to "Assess" state. 

 

We are looking to only make Risk Assessment mandatory questionnaire  for changes to certain CI types. But in general we would like to be able to look at all change fields and make a decision on if we should enforce a Risk Assessment or not? (Example: who is requesting, when it is being request, and values from custom fields). 

 

Additionally:

1. How do we skip the Risk Assessment questionnaire for all changes. Even when I deactivate the questionnaire, though the "Risk Assessment" UI action doesn't show in the related list anymore, when we click on the UI action "Request Approval" the first line of this UI action checks g_scratchpad.has_risk_assessment.

	if (!g_scratchpad.has_risk_assessment && g_form.getValue('type') == 'normal') {
		g_form.addErrorMessage(g_scratchpad.risk_assessment_message);
		return;
	} 

 I am not sure how or when g_scratchpad.has_risk_assessment is being set. Any help with helping me locate that piece of code would be helpful. 

 

2. When I change the conditions in the Risk Assessment questionnaire, again it doesn't show the "Risk Assessment" UI action in the related list, but still denies me the "Request Approval" UI action because of the same condition. 

 

I have been digging through Risk Assessment script includes but nothing seems obvious. I would assume for an standard OOB plugin there is a property that I can just add or change that would do what I need it to do, but in the Risk Assessment properties category menu, doesn't indicate such. 

 

Thanks in advance. 

0 REPLIES 0