Set a minimun lenght for description field

Katya Godneva December 3, 2018

Hello

Can I somehow set the minimum lenght (like 20 symbols, for example)  for Description field for issues, created via customer's portal?

Thanks in advance for any options.

2 answers

1 accepted

1 vote
Answer accepted
Joe Pitt
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
December 3, 2018

Not out of the box. You would need scripting or a plugin. By definition the Description field is unlimited text. 

Katya Godneva December 3, 2018

Thanks a lot!

1 vote
Alexey Matveev
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.
December 3, 2018

Hello,

You can not do it out of the box.

You would need an add-on for it. For example you could do it with the Power Scripts add-on:

https://marketplace.atlassian.com/apps/43318/power-scripts-jira-script-automation?hosting=cloud&tab=overview

You could create a validator with a code like this:

if (length(description) < 20) {

  return false, "The description field must be 20 or more characters";

}

return true;

You can read more about validators here:

https://confluence.cprime.io/display/JJUPIN/Customizing+workflows#Customizingworkflows-Writingvalidators,postfunctions,andconditions

Katya Godneva December 4, 2018

@Alexey Matveev  Wow, thanks a lot, that looks like an interesting solution!

Alexey Matveev
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.
December 4, 2018

@Katya Godneva You are most welcome!

Suggest an answer

Log in or Sign up to answer