I want to validate field values during transitions in jira service management workflows. Field value validation uses regular expression checking. However, it seems that validation cannot be set for custom fields with label attributes. Is it not possible to set it? If not possible, is there any other way if I want to validate custom field value for label attribute?
Labels are not simple strings, they're effectively handled as options - that is the data in the database for them is not a string, but an identifier for an object that has a display/search name (the label the users have entered). The regex validator is looking at the object, not the name of it when you apply it to labels.
You'll need to write code to do validation of labels.
Not with the validator you are using, you'll need to find or write something that can work with labels.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes it is, as I said before.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.