HelloI've written an Velocity email Template. The following Number Field is displaying with a decimal place.Incident Level: $issue.getCustomFieldValue("customfield_11513") is showing to one decimal place e.g. 4.0How can I format this number to remove the decimal place. e.g. Just 4 instead of 4.0?Thanks
Sam
Hi Guys, I've worked this one out - $issue.getCustomFieldValue("customfield_xxxxx").toString().replaceAll(".0", "")
Thanks for this!!
I wish I could get this working for Date Pickers... they're all suffixed with a 00:00:00.0.
I fixed this also, by first defining a variable, guessing I needed to escape the colons or something. #set( $notime = "00:00:00.0" ) $issue.getCustomFieldValue("customfield_xxxxx").toString().replaceAll($notime, "")
It looks like you're new here. Sign in or register to get started.