How to make Summary and Epic Name field to be unique and restrict for special character?

Ashish Bijlwan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 23, 2023

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

 

3 answers

1 accepted

0 votes
Answer accepted
Ashish Bijlwan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 2, 2023

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.

0 votes
David Fischer
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 2, 2023

Hi @Ashish Bijlwan 

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.

Ashish Bijlwan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
March 2, 2023

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.

0 votes
Fabio Racobaldo _Herzum_
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
February 23, 2023

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

Ashish Bijlwan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
February 23, 2023

Hi @Fabio Racobaldo _Herzum_ 

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

Bharat Donga
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 18, 2023

Hey @Ashish Bijlwan , did you get a solution to make it unique?

Ashish Bijlwan
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
October 18, 2023

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events