JIRA 5.2.11 Display a different format for number custom field not working like described in docs

Hey,

I recently upgraded JIRA which I had customized to display a custom field in different format according to this documentation:

https://confluence.atlassian.com/display/JIRA/How+to+display+a+different+format+for+the+Number+customfield

I changed:

WEB-INF/classes/templates/plugins/fields/view/view-number.vm
under the JIRA web application and replaced:
$!numberTool.format($value)
with:
$value.longValue()

After the upgrade to 5.2.11 every number field shows $value.longValue() instead of the actual number. The update added the disable HTML escaping and TODO REENABLE to the template...

Any ideas?

Cheers

4 answers

1 accepted

Try $!value.longValue()

That's resulting in no values being displayed at all...

Hmm. That suggests that the 'value' variable is unset or null. Not sure where to take it from here, though.

Any new ideas on that one?

you may get response from atlassian by updating this issue, but i am not sure!

https://jira.atlassian.com/browse/JRA-7582

I'm not sure why but all of a sudden it works...

Suggest an answer

Log in or Sign up to answer
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Published Sunday in Agility

You asked for it, so we delivered: images on issues have arrived

A picture tells a thousand words. And agility boards have just released their latest feature: cover images on issues – so now your board can tell a story at first glance. Upload attachmen...

233 views 2 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you