Doer & Checker Validation

mounika36
Giga Contributor

In order to address an audit violation, my Services needs to validate that the Implement Change (Doer) & the Check Implementation (Checker) tasks are not assigned to the same person. The assignment group can be the same, but the Assigned to, should be a different person

6 REPLIES 6

Shivani Singh1
Tera Guru

Hi Jyothsna,

You can use this script onChange of "Assigned to" && "Checker" as well.

find_real_file.png

onChange of Checker

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
var a = g_form.getValue('assigned_to');
if ((newValue==a)&& a!=''){
alert('Checker cannot be same as the Assignee.');
g_form.setValue('u_checker',"");

}
}

onChange of Assignee

function onChange(control, oldValue, newValue, isLoading, isTemplate) {
var a = g_form.getValue('u_checker');
if ((newValue==a)&& a!=''){
alert('Assignee cannot be same as the Checker.');
g_form.setValue('assigned_to',"");


}

Please mark helpful if it solves the purpose

Hi Shivani singh,

Thank you for your immediate reply

Acceptance criteria:

When a change is in the Implement state and the Implement Change and Check Implementation are auto created, that the assigned to each specific task is a different person.

that script is useful for this or can i add any other script 

As per my understanding, you have two different CTASK one for Implementation and another for Validation, right?

So, assignee of implementation task should not be same as Assignee of Validation task ?

yes exactly