Versions Compared

Key

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


UI Text Box
sizemedium
typeinfo

This function returns a text with the name of the month for a given date-time, in a certain time zone, and in a certain language.


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


UI Expand
titleExamples


Parser ExpressionDescription


Code Block
languagebash
linenumberstrue
monthToString({issue.created}, LOCAL, USER_LANG)


This example returns the month of the issue creation date as text.

Info
typeinfo

If the creation date was to Given an issue that was created on March 25th, 2020 23:15:30 and the user's Jira language was being set to English the output would be , the returned value is March.




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

Status
subtletrue
titletimezone

The time zone used for the conversion. 

language

Status
subtletrue
titleLanguage

The language used for the conversion. 



UI Expand
titleOutput

This function returns a

Status
subtletrue
titletext



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 the name of the month for a given timestamp.

Output

Status
subtletrue
titletext

Label