Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

how to implement length check on custom field?

Kapo Ng July 7, 2021

how to implement length check on custom field in JIRA Cloud

1 answer

0 votes
Markus
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.
July 7, 2021

Hi Kapo,

This can be done via Automation for Jira's smart value capability.

The smart values you will need to access can be found via the link below.
https://support.atlassian.com/jira-software-cloud/docs/smart-values-text-fields/

 

Here's a really good article to help you get started with Smart Values in A4J

https://blog.codebarrel.io/how-to-use-smart-values-in-automation-for-jira-15edddfb8c7c

Kapo Ng July 8, 2021

that might not be work on my use case. As when HR fill out the onboarding ticket, we need to make sure user's firstname + lastname is less then 20 charactor. 

I found a way to implement length check via regular expression validator but not sure how to implement a calculated field for concatenate.

For example: we have three field
firstname

lastname

username [calculated field] = firstname + lastname

when username field are longer then 20 character, HR will not able to submit the ticket.

Markus
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.
July 8, 2021

Hey,

 

Yeah you're correct there, Jira Service Management forms are static and not dynamic. They don't react to inputs.

To accomplish your goals you'd need to procure an add on such as the one below.

https://marketplace.atlassian.com/apps/1212161/extension-for-jira-service-management?tab=overview&hosting=cloud

Cheers,

Mark

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events