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


capitalizeWords(text) #Output: Text



Parser expressionDescription


 capitalizeWords("heLLo WORLD!") 


This example returnsĀ "HeLLo WORLD!"


 capitalizeWords("jira workflow toolbox!") 


This example returns "Jira Workflow Toolbox!"



Parameters used in this function

ParameterInput (data type)Description
text

Any given text.



This function returns a



Use cases and examples



Parser function cloud
Map(question)
Notes

Workaround


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.






Status
Tech review

Style guide



Short description

Capitalizes a text, only updating the first letters.

Output

Available since

Label