Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,300,164
Community Members
 
Community Events
165
Community Groups

Text field value conversion to Numbers

Hi Everyone, 

I am working on a Event based postfunction, I have some field to calculate and place the result on the other field.

on the event based action I have 3 fields as under:-

Field Name                                            Type

Contract ACV:                                  Number field

Amount ACV Realized:                      Number field

Result of Realized %:                         Text field

post function is set to: set value of “Result of Realized %”

{{ (issue.fields["Amount $ ACV Realized"]*100)/issue.fields["Contract ACV"]}}%

adding inputs to the fields

contract ACV = 1500

amount ACV Realized = 152

Result of Realized % =10.333333333333%

Here as the result field is Text type field I want the “Result of Realized%” to be rounded up I have tired

{{issue.fields["Result of Realized%"].asNumber|round}}

this function didnt worked for me. 

I appreciated your inputs. 

 

1 answer

0 votes
Stefan Salzl Community Leader May 23, 2022

Hi @Muhammad 

did you try .round instead of |round as described in the following documentation:

https://support.atlassian.com/cloud-automation/docs/jira-smart-values-math-expressions/

Best
Stefan

I have figured it out i will share with you thanks for suggestion

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Site Admin
TAGS
Community showcase
Published in Apps & Integrations

Marketplace Partner Spotlight: AppLiger

This month the spotlight is on AppLiger. We caught up with Pavel Pavlovsky, CEO and Product Manager, to learn how the company started and what fuels the team's creativity.    Atlassian:...

396 views 0 7
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you