Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Jira Cloud Automation: difference between two custom fields not shown in a third custom field

Laviniu Chis July 18, 2024

Hello!

I have an issue with the following rule. I want to subtract 'Valoare încasata €' (collected amount) out of 'valoarea facturata €'(billed value) and put the result in 'Rest de plata' ( Amount due). 

image.png

Everything seems to work fine as the audit log suggests 

image.png  

but still the result it is not shown in the Amount due field.

image.png

 

Amy ideas?

1 answer

1 accepted

2 votes
Answer accepted
Trudy Claspill
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 18, 2024

Hello @Laviniu Chis 

The diff() function applies only to date/time fields.

If those are number fields you need to use the minus() function. Refer to

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

Laviniu Chis July 19, 2024

Hi @Trudy Claspill

Thank you, it worked as expected.

Like Trudy Claspill likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Atlassian Community Events