I am not getting a way for regular expression check on jira behaviors. ca someone help with the syntax on the same
I have tried as below, but it is allowing [A-Z] even
FormField ABP = getFieldById(getFieldChanged())
String ABPVal = ABP.getValue();
def regex= /[a-z]*/
def match = (ABPVal=~ regex);
if(ABPVal =~regex )
{
ABP.clearError()
}
else{
ABP.setError("No no")
I have tried as below, but it is allowing [A-Z] even
FormField ABP = getFieldById(getFieldChanged())
String ABPVal = ABP.getValue();
def startsWithSpace=ABPVal.toString().startsWith(' ');
def regex= /[a-z]*/
def match = (ABPVal=~ regex);
if(ABPVal =~regex )
{
ABP.clearError()
}
else{
ABP.setError("No no")
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.