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.
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.
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?
Cheers
Thorsten
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Guillaume Mackowiak Try Regex validator it allow all charaters , limit should be 1-50:-
^.{1,50}$
Explaination :-
.
dot stands for all characters. Except \n
for which you will have to use s
DOTALL flag.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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.