Hi @Prasad Pagar 

Thanks for your code and the script is looking now like this:

if(current.u_affected_service.assigned_to.active == true ||current.u_affected_service.assigned_to.active == 'true')

{

gs.eventQueue('wid.notify.ci_owner', current, current.u_affected_service.assigned_to, gs.getUserID());
gs.addInfoMessage(gs.getMessage('The CI owner of this incident will be notified'));

}

else

{

alert('User is not active');

return false;

action.setRedirectURL(current);
}

Unfortunately there is still a parsing error at the "return" (outside of function).

Thanks again for your support
Regards Alex