Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

This function returns the day of the week of any given timestamp in text form.


Code Block
languagebash
titleSyntax
linenumberstrue
dayOfTheWeekToString(timestamp, timeZone, language) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
dayOfTheWeekToString({issue.dueDate}, LOCAL, USER_LANG)


This example returns the day of the week as text.

UI Text Box
typeinfo

If the due date was set to March 25th, 2020 23:15 and the user's Jira language was set to English, the output would be Friday.




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).
timeZone
Page properties
hiddentrue
Status
Tech review

Status
titletodo

Style guide

Status
titletodo

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

Page properties
hiddentrue
Short descriptionReturns a 

Status
subtletrue
title

text with the day of the week for a date-time t.Output

timezone

The time zone used for the calculation. 

language

Status
subtletrue
title

language

The language used for the calculation.
text



ui-text-boxexpand
sizetitlemedium
typeinfo
Output

This function returns Returns a

Status
subtletrue
titletext


ui-text-box
typetip

If you need with the day of the week for a date-time t, in a certain time_zone, and language.

Code Block
languagebash
titleSyntax
linenumberstrue
dayOfTheWeekToString(number t, timeZone time_zone, language) #Output: Text

as a number, please see dayOfTheWeek().



Image AddedUse cases and examples

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


Page properties
hiddentrue
id1


Parser function cloud
Map(question)
Notes

Workaround

Code Block
languagebash
%{getMatchingValue(dayOfTheWeek({issue.created}, RUN_AS_LOCAL), [1,2,3,4,5,6,7],["Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", "Sunday"])}

Not with Jira Expression, but we can achieve it with our Parser Expressions.




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



Parameters used in this function

The time zone used for the calculation. 

Page properties
hiddentrue


UI Expand
titleExamples
UI Expand
titleAdditional information
ParameterInput (data type)Description
timeZone
Status
subtletrue
titletimezone
Expand
titleLearn more about timezones
Excerpt Include
Dates, times and time zonesDates, times and time zones
nopaneltrue
UI Text Box
typetip

Work 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
The function returns a
Short description

Returns the day of the week of any given timestamp in text form.

Output

Status
subtletrue
titletext

Label