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

This widget could not be displayed.

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.

This widget could not be displayed.

Any new ideas on that one?

This widget could not be displayed.

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

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

This widget could not be displayed.

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 Friday in Jira

New 5k User Limit and Other Cloud Updates

Hi all! Lauren here from the Enterprise Cloud marketing team.  I have some exciting Cloud updates from #AtlassianSummit that I wanted to share. We want everyone in your organization to be ab...

121 views 0 3
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