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.
Bash
withinCalendar(timestamp, calendarName, timeZone) #Output: Boolean
Variant of the function where you can define an additional JWT calendar specification.
Bash
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 | Field type | Automated action | Parser functions |
|---|---|---|---|---|---|
| Add comment when creating issues outside of business hours |
|
withinCalendar() | |||
| Prevent setting due dates outside business hours |
|
withinCalendar() |