Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Validation in Cloud JIRA

Suchita Kumari April 4, 2019

Hi,

 

 Can I put a validation on text or number field in JIRA ? Case sensitive or Digit length . If yes then how ?

1 answer

0 votes
Petter Gonçalves
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
April 5, 2019

Hello Suchita,

I hope you are having a nice day.

Just to confirm that I have properly understood your question, you would like to verify that your field is been added with the correct format (Case sensitive, Digit length, etc) and block the field to be edited until the data match the format you are expecting to be used. Is that correct?

If I have properly understood it, validators on JIRA can only be configured on workflow transitions.

That been said, if you have any fields that you would like to have validated against an expression, you would need to add it only to the view screen and the screens added to the transitions, not allowing the fields to be edited out of the transition.

The validator that you might use to get the content of the fields validated in Case sensitive and the number of characters would be the Regular Expression Check.

This Validator receives The JAVA compliant regular expression used to validate the field contents. For example:

  • [0-9]{4}-[0-9]{4} would allow numbers such as: 1245-7783
  • [0-9]+ EUR$ would allow price tags such as: 34 EUR
  • [a-z]* would allow an empty string, or any lower case word such as: yellow
  • Option [A,B] would allow a selection of options: Option A, Option B or both.

To add a validator to your workflow transitions, you can follow the steps below:

- Navigate to your project > Project Settings > Workflows > Edit

- Select the transition > Click on Validators

For more information about this, you can refer to the documentation below:

Advanced Workflow Configuration

Let me know if this information helps.

Suchita Kumari April 9, 2019

Hi Petterson,

 

Thanks for the input, you got my question correctly.

I have one text field and I want to check character length of 8 digit , the filed can be alphanumeric and first three characters needs to be fixed like OP#45678.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events