Hello,
I would like to avoid having a Summary field longer than 50 caracters.
Can this be achieved by a regex on automation rule?
Regards.
Guillaume.
Hi @Guillaume Mackowiak Try Regex validator it allow all charaters , limit should be 1-50:-
^.{1,50}$
Explaination :-
.
\n
s
@Guillaume Mackowiak You can test Regex validator on :- https://regex101.com/
Hi @Guillaume Mackowiak ,
What you're looking for is a (workflow) validator since automation won't help you here.
That said, head over to the workflow of interest and add the default 'Regular Expression Check' validator to a transition - probably the 'Create' one?
CheersThorsten
Hi @Guillaume Mackowiak
You can achieve this by following these steps:
1. Go to the workflow and add a validation on the "Create" transition.2. Add a validation via "Script Runner".3. Use the following script:
issue.summary.split(' ').length >= 1 && issue.summary.split(' ').length <= 10
(Modify the number of words as per your requirement).
4. Test the script and add it.5. Define a custom error message to help users understand the error.
It looks like you're new here. Sign in or register to get started.