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 time frame defined in a JWT calendar specification.


Code Block
languagebash
titleSyntax
linenumberstrue
withinCalendar(timestamp, calendarName, timeZone) #Output: Boolean


UI Expand
titleExamples

Include Page
DECADIS:_snip_my_schedule_calendar
DECADIS:_snip_my_schedule_calendar

Parser expressionDescription


Code Block
languagebash
linenumberstrue
withinCalendar(2020/12/01 8:00, "my_calendar", LOCAL)


This example returns: 

true

UI Text Box
typeinfo

December 1st of 2020 is a Tuesday.



Code Block
languagebash
linenumberstrue
withinCalendar(2020/12/01 17:00, "my_calendar", LOCAL)


This example returns: 

false

UI Text Box
typeinfo

December 1st of 2020 is a Tuesday.




UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
timestamp

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 function returns a

Status
subtletrue
titleboolean




UI Text Box
sizemedium
typeinfo

Variant of the function where you can define an additional JWT calendar specification.


Code Block
languagebash
titleSyntax
linenumberstrue
withinCalendar(timestamp, calendarName, additionalSpecifier, timeZone) #Output: Boolean


UI Expand
titleExamples

Include Page
DECADIS:_snip_my_schedule_calendar
DECADIS:_snip_my_schedule_calendar

Parser expressionDescription


Code Block
languagebash
linenumberstrue
withinCalendar(2020/12/04 9:00, "my_calendar", "2020/12/04 {;}", LOCAL)


This example returns: 

false


UI Text Box
typeinfo

The additional specifier {;} excludes December 4th from the calendar.




UI Expand
titleAdditional information

Parameters used in this function:

ParameterInput(data type)Description
timestamp

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.
additionalSpecifier

Status
subtletrue
titletext

A text 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
titleboolean


UI Text Box
typetip

This function is usually used in a validators or the conditional execution parameter of post functions.



Use cases and examples

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


Page properties
hiddentrue
id1


Parser function cloud
Map(error)
NotesNot possible because JWT's Calendars are not implemented in the Cloud version.




Page properties
hiddentrue



Status
Tech review

Status
colourGreen
titledone

Style guide

Status
colourGreen
titledone

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



Page properties
hiddentrue


Short descriptionChecks whether a timestamp falls into a time frame defined in a JWT calendar specification.
Output

Status
subtletrue
titleboolean

Available since

Status
subtletrue
colourRed
titleneeds lookup

Label

Status
colourRed
titlestaff pick