Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

This function returns a timestamp for the next occurence of any given day - based on a given date in a certain time zone.

The timestamp will return 00:00i.e., just the beginning of the day.


Code Block
languagebash
titleSyntax
linenumberstrue
nextDayOfTheWeek(timestamp, dayOfTheWeek, timeZone) #Output: Number


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
nextDayOfTheWeek(2018/03/01 12:31, {SUNDAY}, LOCAL)


This example returns: 2018/03/04 00:00 taking into account that 2018/03/01 is a Thursday.


Code Block
languagebash
linenumberstrue
nextDayOfTheWeek({issue.created}, {THURSDAY}, LOCAL)


This example might return: 2018/03/08 00:00 taking if the issue was created on 2018/03/01, which is a Thursday



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).
dayOfWeek

Status
subtletrue
titlenumber

The parameter must be a valid day. You can use time macros or use the function dayOfTheWeek() to specify the day.
timeZone

Status
subtletrue
titletimezone

The time zone used for the calculation. 


UI Text Box
typetip

Days might depend on the time zone - it might be Sunday on the west coast of the US while at the same time it's already Monday in Australia. 



UI Expand
titleOutput

This function returns a

Status
subtletrue
titlenumber



Image AddedUse cases and examples

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


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 description

Returns a timestamp for the next occurence of any given day.

Output

Status
subtletrue
titlenumber

Available since

Status
subtletrue
colourBlue
title2.3.3

Label