Dear community,
I am trying to set the default value for a custom field during database initialization (rt-setup-database action --init). The custom field looks like the following in the initialdata file :
{
Name => 'Is fetched by IntelMQ',
Description => 'IntelMQ_Fetched',
Type => 'SelectSingle',
Queue => 'Incidents',
Pattern => '(?#Mandatory).',
Values => [
{Name => 'No', SortOrder => 1},
{Name => 'Yes', SortOrder => 2},
],
}
I want the custom field to be set as ‘No’ by default but the only way I found was to set it manually using the WebUI. I suspect that we can do such a thing by modifying the @Attributes variable in the initialdata, but I cannot find any documentation about this topic on the Internet. Did somebody already find the right way to do it ?
Looking forward a positive answer !
Cheers,
Henri