Forums

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

Default value for custom field and effectiveness of Field should not be Empty validator

Haran Kumar
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.
February 21, 2019

Hi , 

I have a custom field with default value  as " To be Filled with appropriate description" . When this field is used in the issue , Does the field value be taken as empty field ( since its a default value)  or is it considered as not an empty field. Because, I need to use  " Field shouldn't be empty"  validator in the workflow for this field. 

As custom fields don't get visible without a  value in the issue screen, I have to  enter some content in the custom field as default values. 

And when, I change the field value will it get updated with the new value or still the default value be retained ? 

Any help over this is highly appreciable . 


1 answer

0 votes
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.
February 21, 2019

Hello,

It should not be treated as an empty field. If you change the field with a value, the default value will be replaced to the changed value.

Haran Kumar
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.
February 21, 2019

@Alexey Matveev  Thank you  and will the validator work on this case ? 

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.
February 22, 2019

if your field has a default value, then it will not be empty and validator will not see it as empty.

Haran Kumar
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.
February 22, 2019

@Alexey Matveev  Thank you 

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events