regular expression field validator for Jira Service Desk customer portal

Dina Goncharenko December 14, 2016

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

0 votes
Dina Goncharenko December 15, 2016

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
TAGS
AUG Leaders

Atlassian Community Events