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
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Julia Dillon
Posted Tuesday in Jira

Tell us how your team runs on Jira!

Hey Atlassian Community! Today we are launching a bunch of customer stories about the amazing work teams, like Dropbox and Twilio, are doing with Jira. You can check out the stories here. The thi...

244 views 1 18
Join discussion

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