Hi,
I've created the following code in a velocity template:
#set ($customfield = $customFieldManager.getCustomFieldObject("customfield_10900"))
#if ($issue.getCustomFieldValue($customfield))
#-> $stringUtils.leftPad($customfield.name, $padSize): $issue.getCustomFieldValue($customfield)
#end
#if ($issue.getDueDate())
#-> #text("Fälligkeitsdatum"): $issue.getDueDate()
#end
#->$stringUtils.leftPad($i18n.getText("common.concepts.url"), $padSize): ${baseurl}/browse/${issue.getKey()}
The result is ok, but not perfect:
#-> Service: Servicename
#-> Fälligkeitsdatum: 2019-08-15 00:00:00.0
#-> URL: https://domain.net/xyz
How could I reduce the blanks and the blank lines to get the following result?
#-> Service: Servicename
#-> Fälligkeitsdatum: 2019-08-15 00:00:00.0
#-> URL: https://domain.net/xyz
Best,
Sebastian
Could you simply make &padsize=0? I realize when you just use
#text("Fälligkeitsdatum"):
there're no extra blank spaces.
I'm only guessing but I hope it helps.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.