Versions Compared

Key

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


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

Capitalizes a text, only updating the first letters.

Output StatussubtletruetitletextAvailable since

Status
subtletrue
colourBlue
title2.1.34

UI Text Box
sizemedium
typeinfo

This function converts the first letter of all whitespace-separated words in the given text to upper case.


Code Block
languagebash
titleSyntax
linenumberstrue
capitalizeWords(text) #Output: Text


UI Expand
titleExamples


Parser expressionDescription


Code Block
languagebash
linenumberstrue
 capitalizeWords("heLLo WORLD!") 


This example returns "HeLLo WORLD!"


Code Block
languagebash
linenumberstrue
 capitalizeWords("jira workflow toolbox!") 


This example returns "Jira Workflow Toolbox!"



UI Expand
titleAdditional information

Parameters used in this function

ParameterInput (data type)Description
text

Status
subtletrue
titletext

Any given text.



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_capitalizewords" and space = currentSpace()


Page properties
hiddentrue
id1


Parser function cloud
Map(question)
Notes

Workaround


Code Block
languagebash
let words = issue.summary.split(" ");
 
words.map(w=>w.split("").map(c=>w.indexOf(c)==0? c.toUpperCase(): c)).join().replace("\[", "").replace(" ","").replace(",","").replace("\]"," ")

This expression converts the phrase into a list of char lists of each word, and then it converts to upper case every first char of each word. Then it converts it again into a string replacing the brackets and commas.




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

Capitalizes a text, only updating the first letters.

Output

Status
subtletrue
titletext

Available since

Status
subtletrue
colourBlue
title2.1.34

Label