This function checks whether, a given timestamp (e.g. the due date of an issue) falls into a time frame defined in a JWT calendar specification.


inSchedule(timestamp, calendarName, timeZone) #Output: Boolean


Parser expressionDescription


inSchedule(2020/12/01 8:00, "my_schedule", LOCAL)


This example returns: 

true

December 1st of 2020 is a Tuesday.



inSchedule(2020/12/01 17:00, "my_schedule", LOCAL)


This example returns: 

false

December 1st of 2020 is a Tuesday.




Parameters used in this function

ParameterInput (data type)Description
timestamp

The parameter must be valid timestamp. Usually this value is retrieved from a field (e.g. due date, created date).
calendarName

The name of the used JWT calendar.
timeZone

The time zone used for the calculation.



This function returns a representing a timestamp.




Variant of the function where you can additionally define additional terms, which is a string containing extra JWT calendar. that will be attached to the calendar.

This functions is useful to add personal holidays to an existing calendar.


addTime(base_instant, offset, calendarName, additional_terms, timeZone) #Output: Number


Parser expressionDescription


inSchedule(2020/12/01 8:00, "my_schedule", LOCAL)


This example returns: 

true


inSchedule(2020/12/01 17:00, "my_schedule", LOCAL)


This example returns: 

false



Parameters used in this function

ParameterInput (data type)Description
base_instant


offset


calendarName

The name of the used JWT calendar.
additional_terms

A text containing extra JWT calendar.
timeZone

The time zone used for the calculation.



This function returns a representing a timestamp.


The output can be written into any Jira field of type Date Picker ore Date Time Picker.

Another very common use case is to use this function in one of the JWT calculated date-time fields.





Status
Tech review

Style guide




Short descriptionAdds or subtracts days to or from any given calendar.
Output

Available since

Label