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>
It was a date field. So I used the below code.
$userDateTimeFormatter.withDefaultZone().withStyle($dateTimeStyle.DATE).format($recoveryimelinevalue)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Awesome! (I'm the original author of the Better PDF Exporter app :-))
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Recommended Learning For You
Level up your skills with Atlassian learning
Learning Path
Get started with Jira Service Management
These short, self-paced courses will help you get up and running in Jira Service Management in just 90 minutes.
Learning Path
Adopt ITSM practices with Jira Service Management
Use this path to build your IT Service Management knowledge and earn an Atlassian certification.
Setting Up ITSM Projects in Jira Service Management
This training series helps you get started in Jira Service Management quickly with the new ITSM project template.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.