Mandatory custom filed on ticket

Hi,

Before resolving a ticket, I would like the custom field “Company” of the tickets to be mandatory for the queue named “RTC”.
Our tickets are created by email, so the custom field have no value when creating tickets.

I tried the https://metacpan.org/pod/RT::Extension::MandatoryOnTransition extension but doestn’t work. Users can resolve tickets even if the custom field is empty.

Here is the configuration of my extension: Plugin(‘RT::Extension::MandatoryOnTransition’);

Set( %MandatoryOnTransition,
    "RTC" => { {
        "* -> resolved' => ['Company'],
        },
);

Thanks

If it is a customfield you need to add the ‘CF’ to signify that.

Set( %MandatoryOnTransition,
    'QueueName' => {
        'from -> to' => [ 'BasicField', 'CF.MyField', ],
    },
);
1 Like

Thanks a lot.

I spent a lot of time searching when the answer was so simple :upside_down_face:

Regards,
Tony

1 Like