This function checks whether, a given timestamp (e.g. the due date of an issue) falls into a timeframe specified in a JWT calendar.
If it falls into the time frame, the value will be returned, otherwise the next possible timestamp based on the calendar.
nextTime(timestamp, calendarName, timeZone) #Output: Number
Variant of the function where you can additionally define additional terms, which is a text containing extra JWT calendar that will be attached to the calendar.
This functions is useful to add personal holidays to an existing calendar.
nextTime(time_instant, calendarName, additional_terms, timeZone) #Output: Number
In the examples we have used the following definition for "my-calendar":
MON - THU { 08:00 - 15:00, 16:00 - 19:30; } FRI { 08:00 - 15:00; }
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.