You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

On this page

What is a JWT calendar?

It defines custom schedules that can be used for time calculations like time subtraction and time addition.

The basic operations that can be done using the JWT calendars are:

  1. Belonging: Check if a certain time does or does not belong to a particular calendar.
  2. Time addition: Calculates the new time instant by adding a certain time duration to the time suggest defined by a particular calendar.
  3. Time subtraction: Calculates the difference between two particular time instants by a time subset defined by a particular calendar. 

Where to find JWT Calendars?

Head over to Administration → Manage apps → Jira Workflow Toolbox → Calendars

JWT calendars syntax

Main concepts

  • Calendar: A system on which we will be able to do time calculations. Calendars are composed of at least one time specifier.
  • Time Specifier: They are composed of a time definition and a block. (They are written in the following way: <time_definition> { <block_content> } ).
    • Time definition: Defines a part of the time continuum (a set of real numbers ℝ).
    • Block: Is written between braces {} and defines a scope where the lower level time specifiers can be written.
  • Time Specifier's Level: Time specifiers are ordered in a 5 level hierarchy:
    1. Global
    2. Year
    3. Month
    4. Week
    5. Day

A time specifier of a particular level is always explicitly or implicitly contained in a time specifier of the immediately higher level. When the higher level time specifier is not written, then it's implicitly contained in an unrestricted higher level time specifier.

  • Time Specifier's Priority: Time specifiers have also a priority associated, so that when 2 time specifiers overlap in the same level, the one with the highest priority is applied. Time specifiers with the same priority in the same level are not allowed to overlap, i.e., the intersection of their time definitions must be empty.
  • Time Specifier's Category: We can classify time specifiers in 2 categories:
    1. Absolute: Defines the unique and specific parts of the time continuum. This category of time specifiers represents the ones in the global level.
    2. Relative: Define parts of the time in the context of other time specifiers, i.e., the actual part of the time continuum defined depends on the time specifier where it is contained. This category of time specifiers is contained in the all levels besides the global.
  • Comment: JWT calendars supports single-line comments. Comments begin with a #. e.g.: #Summer Calendar

Time specifiers