Items are scheduled within the Gantt chart based on the work schedule outlined in the Calendar. You can select or customize the calendar to be used from the General Configuration screen.

Calendar Settings

Structure.Gantt comes with two predefined calendars: "Standard" (40-hour work week, 9:00-17:00 every workday) and "24 Hour" (all time marked as working time). You can edit these calendars or create additional calendars by clicking Manage Work Calendars.

Manage Work Calendars

Default Calendar

Select which calendar will be selected by default when new charts are created. Unless you change this setting, the Standard calendar will be used. 

Creating and Editing Calendars

Calendar format

A calendar is defined by a code in JSON format, which sets the working periods for each day of the week and lists exceptions.

Details about the JSON format are provided below, but please reach out to us at support@almworks.com if you need assistance.

Basic structure

Every calendar consists either of a Week schedule or list of exceptions, or both:

{
  "week": ...,
  "exceptions": ...
}
CODE

Week schedule

Week schedule is defined by specifying work ranges for every weekday (monday, tuesday, wednesday, thursday, friday, saturday, sunday):

"week": {
      "monday": [
        {
          "start": 900,
          "finish": 1300
        },
        {
          "start": 1400,
          "finish": 1715
        }
      ],
      "tuesday": [
        {
          "start": 900,
          "finish": 1300
        },
        {
          "start": 1400,
          "finish": 1715
        }
      ]
}
CODE

Time is written using HHMM format, where HH is a 24 hours and MM is minutes, for example: `1730` for 17:30 and `930` for 9:30.

You may skip weekday either by skipping its definition at all or by providing an empty list of ranges: 

{"monday": []}
CODE

Exceptions

Exceptions are defined for exact dates:

"exceptions": [
      {
        "date": 20170301,
        "workPeriods": []
      },
      {
        "date": 20170305,
        "workPeriods": []
      }
]
CODE

Dates are written using YYYYMMDD format, where YYYY is 4 digit year, MM is a month (1-12) and DD is a day (0-31).

Hierarchy

You can also organize calendars into a hierarchy via "Based on" property, so you can create more specific calendars based on some general one ("Standard", for example).

Then extending existing calendar week schedule values are overridden (i.e. defenition for "wednesday" in a child calendar will override "wednesday" schedule of parent calendar).

Deleting Calendars

Deleting a calendar cannot be undone! Please be careful when doing so, as it could impact other Gantt charts that are assigned to that calendar.