I need a custom field that only accepts values 1 to 100

Angela Tran August 22, 2016

Is there a way to validate custom field input and send an error message if it does not satisfy the condition? Can this be done with scripted fields (Script Runner)?

1 answer

1 accepted

1 vote
Answer accepted
Nic Brough -Adaptavist-
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 22, 2016

Not scripted fields - they basically display stuff based on the code behind them, not check entry or validation.

You could use SR to write a validator though - I suspect it's a single line of code to check that an entry is 1 to 100, but validators only run on issue transitions.

The best bet is probably a SR "Behaviour" to check the input - that can work anywhere the field is available for edit.

Angela Tran August 22, 2016

Thanks! I'll try Behaviors. 

Suggest an answer

Log in or Sign up to answer