Hello,
I am new to Jira and I'm trying to populate a custom value to a custom Jira report. The value is as below.
Recovery Timeline: 31/Dec/19
We use Midori plugin for it and below is the block of code I'm trying to use. Did I miss something?
#set($recoverytimeline = $customFieldManager.getCustomFieldObjectByName("Recovery Timeline"))
#set($recoverytimelinevalue = $issue.getCustomFieldValue($recoverytimeline).getDateString())
<fo:table-cell padding="1mm" border-width="0.5mm" border-style="solid" number-columns-spanned="2" >
<fo:block space-before="1mm">
<fo:block>$xmlutils.escape($recoverytimelinevalue)</fo:block>
</fo:block>
</fo:table-cell>
Solved! Go to Solution.
Hi Aron,
It was rendering a blank space when I was using the above code. I called it all wrong. With the below, I was able to populate the required value.
it was a date field. So I used the below code
$userDateTimeFormatter.withDefaultZone().withStyle($dateTimeStyle.DATE).format($recoveryimelinevalue)
Awesome! (I'm the original author of the Better PDF Exporter app :-))
That's nice to know. Midori is making my life a lot easy. Thank you for getting back to me. :)
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Get the most out of Jira Service Management
Solve customer problems efficiently and deliver outstanding service experiences.
Learning Path
Adopt ITSM practices to deliver exceptional service
Become familiar with the principles and practices that drive ITSM. Then, learn how to configure and use Jira Service Management to implement them.
Atlassian Certified Associate
Jira Service Management Agent Essentials certification
Prove you know what's essential to providing efficient and resolution-focused service in Jira Service Management.