Hi Sunjay,
There are actually two ways to achieve what you want:
You can manage additional calendars from Config.pm by adding the following
lines:
$Self->{'TimeWorkingHours::Calendar10'} = {
'Fri' => [
'9',
'10',
],
'Mon' => [
'9',
'10',
],
'Sat' => [
'9',
'10',
],
'Sun' => [
'9',
'10',
],
'Thu' => [
'9',
'10',
],
'Tue' => [
'9',
'10',
],
'Wed' => [
'9',
'10',
]
};
$Self->{'TimeVacationDays::Calendar10'} = {
'1' => {
'1' => 'New Year\'s Day'
},
'12' => {
'25' => 'First Christmas Day',
'26' => 'Second Christmas Day'
},
'4' => {
'30' => 'Queens Day'
}
};
$Self->{'TimeZone::Calendar10'} = '+6';
$Self->{'TimeZone::Calendar10Name'} = 'My Calendar Name';
Repeat for every additional calendar, but change all references from
Calendar10 to Calendar11.
Another way, even nicer, would be to create a new XML file
'AdditionalCalendars.xml' in otrs/Kernel/Config/Files, see attached sample.
You can now manage the calendars via the sysconfig, just as you would with
the calendar 1 to 9...
with the attached sample you only get one additional calendar, calendar10,
but you get the idea I guess...
Regards,
--
Michiel Beijen
Software Consultant
+31 6 - 457 42 418
Bee Free IT + http://beefreeit.nl
On Fri, Sep 18, 2009 at 10:40 AM, Kaul, Sunjay <[email protected]>wrote:
> Hi,
>
> How do I get to configure/use the 99 calendars as mentioned in the ITSM
> Admin Manual. So far, I can see and am able to use the default 9 but don’t
> have any idea of how to bring up the remaining 90.
>
> Any help is appreciated
>
> Regards,
>
> Sunjay
>
>
>
> This message contains information that may be privileged or confidential
> and is the property of the Capgemini Group. It is intended only for the
> person to whom it is addressed. If you are not the intended recipient, you
> are not authorized to read, print, retain, copy, disseminate, distribute, or
> use this message or any part thereof. If you receive this message in error,
> please notify the sender immediately and delete all copies of this message.
>
>
> ---------------------------------------------------------------------
> OTRS mailing list: itsm - Webpage: http://otrs.org/
> Archive: http://lists.otrs.org/pipermail/itsm
> To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm
>
> NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
> http://www.otrs.com/en/support/enterprise-subscription/
>
<?xml version="1.0" encoding="iso-8859-1" ?>
<otrs_config version="1.0" init="AdditionalCalendars">
<ConfigItem Name="TimeZone::Calendar10Name" Required="1" Valid="1">
<Description Lang="en">Calendar Name.</Description>
<Description Lang="de">Kalender Name.</Description>
<Group>AdditionalCalendars</Group>
<SubGroup>Core::Time::Calendar10</SubGroup>
<Setting>
<String Regex="">Calendar Name 10</String>
</Setting>
</ConfigItem>
<ConfigItem Name="TimeZone::Calendar10" Required="1" Valid="1">
<Description Lang="en">The time zone of the queue.</Description>
<Description Lang="de">Zeitzone der Queue.</Description>
<Group>Framework</Group>
<SubGroup>Core::Time::Calendar10</SubGroup>
<Setting>
<Option SelectedID="0">
<Item Key="0">+ 0</Item>
<Item Key="+1">+ 1</Item>
<Item Key="+2">+ 2</Item>
<Item Key="+3">+ 3</Item>
<Item Key="+4">+ 4</Item>
<Item Key="+5">+ 5</Item>
<Item Key="+6">+ 6</Item>
<Item Key="+7">+ 7</Item>
<Item Key="+8">+ 8</Item>
<Item Key="+9">+ 9</Item>
<Item Key="+10">+10</Item>
<Item Key="+11">+11</Item>
<Item Key="+12">+12</Item>
<Item Key="-1">- 1</Item>
<Item Key="-2">- 2</Item>
<Item Key="-3">- 3</Item>
<Item Key="-4">- 4</Item>
<Item Key="-5">- 5</Item>
<Item Key="-6">- 6</Item>
<Item Key="-7">- 7</Item>
<Item Key="-8">- 8</Item>
<Item Key="-9">- 9</Item>
<Item Key="-10">-10</Item>
<Item Key="-11">-11</Item>
<Item Key="-12">-12</Item>
</Option>
</Setting>
</ConfigItem>
<ConfigItem Name="TimeVacationDays::Calendar10" Required="1" Valid="1">
<Description Lang="en">Add your permanent vacation days. Use single-digit pattern for months January to September and for days of month lower than ten.</Description>
<Description Lang="de">Hinterlegen Sie hier Ihre permanenten Feiertage im System. Benutzen Sie bitte für Januar bis Septemper einstellige Zahlen (1-9), ebenso für Monatstage kleiner zehn.</Description>
<Group>Framework</Group>
<SubGroup>Core::Time::Calendar10</SubGroup>
<Setting>
<TimeVacationDays>
<Item Month="1" Day="1">New Year's Eve!</Item>
<Item Month="5" Day="1">1 St. May</Item>
<Item Month="12" Day="24">Christmas</Item>
<Item Month="12" Day="25">First Christmas Day</Item>
<Item Month="12" Day="26">Second Christmas Day</Item>
<Item Month="12" Day="31">Silvester</Item>
</TimeVacationDays>
</Setting>
</ConfigItem>
<ConfigItem Name="TimeVacationDaysOneTime::Calendar10" Required="1" Valid="1">
<Description Lang="en">One time vacation days. Use single-digit pattern for months January to September and for days of month lower than ten.</Description>
<Description Lang="de">Einmalige Feiertage im System hinterlegen. Benutzen Sie bitte für Januar bis Septemper einstellige Zahlen (1-9), ebenso für Monatstage kleiner zehn.</Description>
<Group>Framework</Group>
<SubGroup>Core::Time::Calendar10</SubGroup>
<Setting>
<TimeVacationDaysOneTime>
<Item Year="2004" Month="1" Day="1">test</Item>
</TimeVacationDaysOneTime>
</Setting>
</ConfigItem>
<ConfigItem Name="TimeWorkingHours::Calendar10" Required="1" Valid="1">
<Description Lang="en">Hours and week days to count the working time.</Description>
<Description Lang="de">Wochentage und Stunden für die die Arbeitszeit erfasst werden soll.</Description>
<Group>Framework</Group>
<SubGroup>Core::Time::Calendar10</SubGroup>
<Setting>
<TimeWorkingHours>
<Day Name="Mon">
<Hour>8</Hour>
<Hour>9</Hour>
<Hour>10</Hour>
<Hour>11</Hour>
<Hour>12</Hour>
<Hour>13</Hour>
<Hour>14</Hour>
<Hour>15</Hour>
<Hour>16</Hour>
<Hour>17</Hour>
<Hour>18</Hour>
<Hour>19</Hour>
<Hour>20</Hour>
</Day>
<Day Name="Tue">
<Hour>8</Hour>
<Hour>9</Hour>
<Hour>10</Hour>
<Hour>11</Hour>
<Hour>12</Hour>
<Hour>13</Hour>
<Hour>14</Hour>
<Hour>15</Hour>
<Hour>16</Hour>
<Hour>17</Hour>
<Hour>18</Hour>
<Hour>19</Hour>
<Hour>20</Hour>
</Day>
<Day Name="Wed">
<Hour>8</Hour>
<Hour>9</Hour>
<Hour>10</Hour>
<Hour>11</Hour>
<Hour>12</Hour>
<Hour>13</Hour>
<Hour>14</Hour>
<Hour>15</Hour>
<Hour>16</Hour>
<Hour>17</Hour>
<Hour>18</Hour>
<Hour>19</Hour>
<Hour>20</Hour>
</Day>
<Day Name="Thu">
<Hour>8</Hour>
<Hour>9</Hour>
<Hour>10</Hour>
<Hour>11</Hour>
<Hour>12</Hour>
<Hour>13</Hour>
<Hour>14</Hour>
<Hour>15</Hour>
<Hour>16</Hour>
<Hour>17</Hour>
<Hour>18</Hour>
<Hour>19</Hour>
<Hour>20</Hour>
</Day>
<Day Name="Fri">
<Hour>8</Hour>
<Hour>9</Hour>
<Hour>10</Hour>
<Hour>11</Hour>
<Hour>12</Hour>
<Hour>13</Hour>
<Hour>14</Hour>
<Hour>15</Hour>
<Hour>16</Hour>
<Hour>17</Hour>
<Hour>18</Hour>
<Hour>19</Hour>
<Hour>20</Hour>
</Day>
<Day Name="Sat">
</Day>
<Day Name="Sun">
</Day>
</TimeWorkingHours>
</Setting>
</ConfigItem>
</otrs_config>
---------------------------------------------------------------------
OTRS mailing list: itsm - Webpage: http://otrs.org/
Archive: http://lists.otrs.org/pipermail/itsm
To unsubscribe: http://lists.otrs.org/mailman/listinfo/itsm
NEW! ENTERPRISE SUBSCRIPTION - Get more information NOW!
http://www.otrs.com/en/support/enterprise-subscription/