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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Would you be so kind to share your solution and/or consider to accept the answer in order to mark this issue as resolved and make it easier for other users to find the solution?
Best
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.