SLA: Couldn't decode ServiceBusinessHours JSON

Hello,

I am trying to configure SLA. I enabled it on the queue and then under Systemconfiguration and Edit and SLA I paste this:

on Service Agreement

Set( %ServiceAgreements, (
    Default => 'standard',
    Levels => {
        'standard' => {
            Resolve => { BusinessMinutes => 4*60 },
        },
    },
));

And on Business Hours

Set( %ServiceBusinessHours, (
    'Default' => {
        1 => { Name => 'Monday', Start => '8:00', End => '17:00' },
        2 => { Name => 'Tuesday', Start => '8:00', End => '17:00' },
        3 => { Name => 'Wednesday', Start => '8:00', End => '17:00' },
        4 => { Name => 'Thursday', Start => '8:00', End => '17:00' },
        5 => { Name => 'Friday', Start => '8:00', End => '17:00' },
    },
));

But it can’t save it. It says:
Couldn’t decode ServiceBusinessHours JSON and then all the things that I pasted in.

What is wrong? I installed RT5 yesterday on a newly installed Ubuntu Server 22.04 LTS. Please help with this so I understand.

Pasted it in RT_Siteconfig.pm before the end of the file was better :slight_smile: and also I didn’t know that I had to create a file called wsgetmail.json or whatever and then call the file, didn’t think the guide was so obvious. Now it works.

Is it supposed to just count down to the due date, I thought it should sent an email reminder?