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.
withinCalendar(timestamp, calendarName, timeZone) #Output: Boolean
Variant of the function where you can define an additional JWT calendar specification.
withinCalendar(timestamp, calendarName, additionalSpecifier, timeZone) #Output: Boolean
This function is usually used in a validators or the conditional execution parameter of post functions.
Use cases and examples
Use case | JWT feature | Workflow function | Parser functions |
---|---|---|---|
Prevent setting due dates outside business hours | withinCalendar() | ||
Add comment when creating issues outside of business hours | withinCalendar() |