Custom Field with only Serial Numbers

thiago
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!
May 7, 2024

Dear Support,

I have a query regarding the customization of fields in Jira.

Is it possible to create a field where users are required to input only a serial number? The serial number format should consist of two letters followed by a sequence of five numbers (e.g., AB12345).

Your assistance in this matter would be greatly appreciated.

Thank you for your attention to this request.

2 answers

0 votes
Maciej Dudziak _Forgappify_
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.
May 7, 2024

Hi @thiago 

Out of the box in Jira, you can use the Regular Expression Check Validator against any Text Field. However, you would need to add the validator on every transition, including the Create Issue transition. Here's how you would configure it:

community_serial_number.png

If you're looking for a better validation message, you'll need an app with a Jira expression validator, which you can find on the Atlassian Marketplace

I am from Forgappify, and we also developed Jira Expression Validator, which is part of the Workflow Building Blocks for Jira 

For your case, the Jira expression would be as follows:

community_serial_number_expression.png

You need to change id of the customfield to your field.

I hope it will help.

Cheers

 

0 votes
Stephen_Lugton
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
May 7, 2024

@thiago there is no default field type that would let you do that.

It is possible that an app exists but you would have to look at the app marketplace to see if you could find one..

You could also add a validator to a workflow transition to check that the format of the serial number is correct and if not stop the transition from occurring as well as displaying an error popup stating that the serial number needs to be in the format AANNNNN

Vicente Domínguez _Decadis AG_
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.
May 7, 2024

Hello @thiago and @Stephen_Lugton,

I am part of the Decadis team and I would like to share that such a validation would be possible with a JWT for Jira Cloud Jira expression validator that checks if a Text field (single line) contains a text that matches a given regular expression.

If you are interested in our app and need more information about how to configure the validator for this purpose, please, feel free to create a request in our support portal or to reply to us in this thread.

Best regards,

Vicente

 

Suggest an answer

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

Atlassian Community Events