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.

UI Text Box
typeinfo

Given an issue that was created on March 25th, 2020 23:15:30 and the user's Jira language being set to English, 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



Image AddedUse cases and examples

Page properties report
firstcolumnUse case
headingsJWT feature, Workflow function, Field type, Automated action, Parser functions
cqllabel = "parser_func_monthtostring" 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 the name of the month for a given timestamp.

Output

Status
subtletrue
titletext

Label