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

This widget could not be displayed.

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
Community showcase
Published Aug 13, 2018 in Jira Service Desk

Jira Service Desk – Don’t be afraid, the journey begins with curiosity!

...be more productive while being fun to use at the same time. For some, getting started can be a bit intimidating. This is especially true if Jira Service Desk is your first exposure to Atlassian...

8,710 views 9 28
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