Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


UI Text Box
sizemedium
typeinfo

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 a JWT calendar specification.


Code Block
languagebash
titleSyntax
linenumberstrue
nextTime(timestamp, calendarName, timeZone) #Output: Number


UI Expand
titleExamples

Include Page
DECADIS:_snip_my_schedule_calendar
DECADIS:_snip_my_schedule_calendar

Parser expressionDescription


Code Block
languagebash
linenumberstrue
nextTime(2020/12/01 01:00, "my-calendar", LOCAL)


This example might return returns a timestamp representing:

"2020/12/01 08:00"

UI Text Box
typeinfo

The next valid timestamp is 8AM on the same day, December 12th (which is a Tuesday).



Code Block
languagebash
linenumberstrue
nextTime(2020/12/01 15:00, "my-calendar", LOCAL)


This example

might return

returns a timestamp representing:

"2020/

12

13/04 08:00"

UI Text Box
typeinfo

The next valid timestamp is 8AM on the next day, December 13th.




UI Expand
titleAdditional information

Parameters used in this function:

ParameterInput(data type)Description
time_instanttimestamp

Status
subtletrue
titlenumber

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

Status
subtletrue
titletext

The name of the used JWT calendar.
timeZone

Status
subtletrue
titletimezone

The time zone used for the calculation.



UI Expand
titleOutput

This functions returns a

Status
subtletrue
titlenumber
representing a timestamp.




UI Text Box
sizemedium
typeinfo

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.

define an additional JWT calendar specification.


Code Block
languagebash
titleSyntax
linenumberstrue
nextTime(time_instanttimestamp, calendarName, additional_termsadditionalSpecifier, timeZone) #Output: Number


Example with 20172017 20171205 8
UI Expand
titleExamples

Include Page
DECADIS:_snip_my_schedule_calendar
DECADIS:_snip_my_schedule_calendar

Example without an additional term:

Parser expressionDescription

Example without an

Parser expressionDescription
Code Block
languagebash
linenumberstrue
nextTime(2017/12/01 15:00, "my-calendar", LOCAL)
This example returns: "2017/12/04 08:00"

additional term:

Code Block
languagebash
linenumberstrue
nextTime(
2020/12/01 15:00, "my-calendar", "
2020/12/04 {;}", LOCAL)


This example returns a timestamp representing:

"

04/

Dec/

20 1:00 PM" 

UI Text Box
typeinfo

The next valid timestamp is 8AM on the first day after December 4th, which is December 5th.




UI Expand
titleAdditional information

Parameters used in this function:

ParameterInput(data type)Description
time_instanttimestamp

Status
subtletrue
titlenumber

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

Status
subtletrue
titletext

The name of the used JWT calendar.
additional_termsadditionalSpecifier

Status
subtletrue
titletext

A text containing extra JWT calendars.containing an additional JWT calendar specification
timeZone

Status
subtletrue
titletimezone

The time zone used for the calculation.



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber
representing a timestamp.


bash

In the examples we have used the following definition for "my-calendar":

UI Text Box
Code Block
language
typeinfo
MON - THU {
   08:00 - 15:00,
   16:00 - 19:30;
}
 
FRI {
    08:00 - 15:00;
}
UI Text Box
typetip

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.



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_nexttime" and space = currentSpace()


Page properties
hiddentrue
id1


Parser function cloud
Map(error)
NotesNot possible because we have not implemented yet Calendars on the Cloud version.




Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titletododone

Style guide

Status
colourGreen
titletododone

Status
titletodo
Status
colourYellow
titleReady for review
Status
colourGreen
titledone
Status
colourRed
titleflagged



Page properties
hiddentrue


Short description

Returns the next possible time instance timestamp based on a specific JWT calendar specification.

Output

Status
subtletrue
titlenumber

Available since

Status
subtletrue
colourRed
titleneeds lookup

Label