The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

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 Champions.
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 Champions.
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

TAGS
AUG Leaders

Atlassian Community Events