Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Displaying a float from Assets as currency

Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 19, 2024

Hi,

In the description of an issue I am adding a value for a field that has been selected from Assets.

I am using this to get the price

{{issue.customfield_10118.Price}}

I can display that as a number in the description, but I want it as a currency.

I have tried

{{issue.customfield_10118.Price.asNumber.asCurrency}}

{{issue.customfield_10118.Price.asCurrency}}

and they both just don't end up displaying the field.

Is there a way to show the value from assets as a currency value in JSM?

1 answer

1 vote
Vijay Dadi
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 19, 2024

Hello @Ste404 ,

There's nothing to stop you creating a custom field with a currency in its name.  But Jira will handle it like any other number field.

This is how I did it. I'm not a Jira expert but it worked for me!

Go to Jira Settings, then Issues, then Fields or Custom Fields 

Scroll down to the field you want to change

Click on the three dots on the right of the title

Click on Configure

The Configure Custom Field screen will be displayed.

Click on Edit Default Value and the Set Custom Field Defaults screen will be displayed.

Add the £ (or whatever default you want) and click on Set Default

Hope that helps you!

Ste404
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 19, 2024

I know how to create custom fields, just don't need them in this instance.  I am dynamically building a table with 30 different calculated subtotals, so in that case I would need 30 extra custom fields.  

I'll go without the $.

Like Sanjay G likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events