I need to exit from the scriptrunner script once the condition is matched.
if (!cnList) {
log.error("user already exist")
def reporter ="My comments"
//return commentMgr.getLastComment(issue)*.body
return commentMgr.create(issue,currentUser, "Error :: User $cFieldValue2 Onqid not found in LDAP. Please check the ONQid" , true)
return 0;
}
This piece of code is not working properly and iterating to the end of all functions.
I want to exit from the script once this condition is found please. A help will really be approtiated.