regular expression field validator for Jira Service Desk customer portal

Hello,

Can someone recommend me a regular expression field validator which will validate a custom field on the customer portal? I have tried using the 'JIRA Suite Utilities' plugin but the problem is the customer sees the error message, which is unreadable to them, e.g. 

"Error

Field Account Number with actual value 12345 does not match regular expression \d{8}-\d{3}-\d{1}-([1-57-9]\d{2}3\d{5})-\d{1}"

The requirement is user cannot submit a ticket if the account number does not pass the correct format. JIRA Suite Utilities does that, the error message is non-configurable though.

Any recommendations is appreciated, whether it's a custom field or a workflow validator.

 

Thanks in advance!

Dina

 

 

1 answer

Found it. Kind of a screwy way of getting this to work as the links for the documentation are incorrect, and it's hard and time-consuming to find any additional info on this. Hope it helps someone else smile

  1. go to https://marketplace.atlassian.com/plugins/ru.mail.jira.plugins.uniqueregexfield/server/support
  2. Click on 'Get it now' button  in the right top corner. This will download uniqueregexfield-1.2.4.jar
  3. Put this jar in the 'installed-plugins' directory in your JIRA install
  4. Re-start the service 
  5. Follow the documentation here: https://bitbucket.org/amarkelov/unique-regex-custom-field/wiki/Home. It is outdated, but the principles are the same: 
    1. add a custom field 'Unique regex custom field'

    2. Configure it via Administration - Add-ons - Unique Regex Fields

      Even though you are supplying your custom error message, the error message that is displayed to the  customer is this "Please provide a valid value for field  'xxx'".

       

      Other than that - works like a charm!
      Thanks!

    Dina

 

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Jun 14, 2018 in Jira Service Desk

How the Telegram Integration for Jira helps Sergey's team take their support efficiency to the bank

...+ reading Fantasy). The same is true for him at the bank he works for: Efficiency is key when time literally equals money. Read on to learn how Sergey makes most of the time he has by...

780 views 5 7
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you