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 P Claspill
Community Champion
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 P Claspill

Thank you, it worked as expected.

Like Trudy P Claspill likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events