Panel | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
| ||||||||||
This is the documentation of JSU for Jira Server/Data Center. If you are using JSU on Jira Cloud, you can find the documentation heresee our JSU Cloud documentation. |
Excerpt | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
DescriptionThe 'Regular Expression Check' 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. For example:
Detailed Refer to detailed documentation on Regex can be found here: https://docs.oracle.com/javase/7/docs/api/java/util/regex/Pattern.html It is quite technical though. A good website that could help further is https://www.freeformatter.com/java-regex-tester.html where you can test them and also have less technical documentation with for technical descriptions. You can use this 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 which 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.
Note: The order in which the values are concatenated, depends on the natural sorting order of the field value type. Since the values may be stored in the issue in an unspecific order, values that do not have a natural sorting order may be concatenated in an unspecific order. "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.
For information on how to configure a check in JIRAJira, see the JIRA Jira documentation.
ExampleA 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. Supported Field Types
|
...