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

2 votes
Accepted answer

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
Community showcase
Published Nov 27, 2018 in Portfolio for Jira

Introducing a new planning experience in Portfolio for Jira (Server/DC)

In the past, Portfolio for Jira required a high degree of detail–foresight that was unrealistic for many businesses to   have–in   order to produce a reliable long-term roadmap. We're tur...

2,731 views 17 21
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