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
Start with basic Jira Service Management terms and navigation. Then, discover how to solve customer problems efficiently.
Learning Path
Adopt ITSM practices to deliver exceptional service
Learn IT service management principles and configure Jira Service Management to implement ITSM processes.
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.