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 a JWT calendar specification.
nextTime(timestamp, calendarName, timeZone) #Output: Number
Variant of the function where you can define an additional JWT calendar specification.
nextTime(timestamp, calendarName, additionalSpecifier, timeZone) #Output: Number
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.
Use cases and examples
Use case | JWT feature | Workflow function | Field type | Automated action | Parser functions |
---|---|---|---|---|---|
Set a date two months after the end of the quarter | nextTime() addMonths() |