Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
This is the documentation for JSU for Jira Server/Data Center. If you are using JSU on Jira Cloud, see our JSU Cloud documentation. |
Excerpt |
---|
DescriptionThe 'Regular Expression Check' validator compares the value of a text, number, or |
...
URL field against a regular expression |
...
, for example, to verify that the content matches a given format. ConfigurationYou must select the field to be checked and enter the regular expression |
...
. ExampleA workflow is configured so that the 'Resolve' transition has the 'Regular Expression Check' where 'TextField' must match '[a-z]*'. If a user attempts to resolve an issue on this workflow, where the 'TextField' is, for example,
|
For information on how to configure a check in JIRA, see the JIRA documentation.
Be careful what kind of regular expressions you are using. Some might be exploited by a malicious person. See ReDoS . It is your responsibility as JIRA administrator to only use safe regular expressions.
...
Example
A workflow is configured so that the 'Resolve' transition has the 'Regular Expression Check' where 'TextField' has to match '[a-z]*'. If a user attempts to resolve an issue on this workflow, where the 'TextField' is for example '7 pieces', the check will fail, and no action will be performed. However 'pieces' as content would be allowed.
See detailed documentation on Regex for technical descriptions. You can also use the Java Regular Expression Tester to help with testing and to see more examples. Additional configuration options include: Concatenate multiple values This option is only available for fields that can store multiple values including the system fields "Affected Version/s", "Components", "Fix Version/s" and "Watchers" as well as most custom fields with multiple settable values.
Split on newline characters This option is only available for text area fields including the system fields "Description" and "Environment" as well as text area custom fields.
Optional error messageYou can define a custom error message for JSU validators to provide a clear explanation of the situation to your users. If you leave this field empty, a default error message from Jira will be displayed on validation errors. Supported field types
|