Hi,
Can someone help me on how to make Jira "Summary" and "Epic Name" field to be unique and restrict for special character? So, user can't add duplicate value in Summary and Epic Name as well as can't add the special characters.
Thank you,
Ashish
I am able to place the validator for Jira Summary to restrict the Special Characters to be entered by user using the Regular Expression Check validator and for Epic Name field a script can be build in JMWE plugin as below.
issue.customfield_10011.matchAll('[*^~\\]').length == 0
The code will return true if no special characters * ^ ~ or \ are found in the Epic Name field.
you can indeed add the Build-your-own Validator you posted earlier to prevent special characters.
However, you cannot prevent users from typing an existing Summary or Epic Name, because Jira Cloud doesn't support running a JQL search from a Validator.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes @David Fischer you are right for that as a Workaround need to add the mentioned validator to all the transitions. By this way it will check for the special character in each transition and will throw the error accordingly.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Ashish Bijlwan ,
In order to do that, in my opinion, you should put in pace a validator (in the creation transition). You can using scriptrunner or your own plugin.
Hope this helps,
Fabio
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am able to place the validator for Jira Summary to restrict the Special Characters to be entered by user using the Regular Expression Check validator, but unable to do same for the Epic Name as the field is not showing up under Regular Expression Check validator.
Also, it would be great if you could help me on how to make a field unique.
Thank you,
Ashish
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hey @Ashish Bijlwan , did you get a solution to make it unique?
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.