Hi team,
I need help to create a subtraction of values (numbers) in my automation. I have 3 custom fields name as below :
1. Result
2. Duration A
3. Duration B
All 3 of these custom fields are number types set in custom field as well.
I need help to make the subtraction of A from B then the outcome should be Result.
B-A = Result.
I have tried with
{{issue.customfield_A.minus(issue.B)}}
{{issue.customfield_B}} - {{issue.customfield_A}}
but both did not work and I cant find out why because the result does not appear and in audit log it appears as success :(
Context is important for understanding problems with automation rules.
For a question like this, please post an image of your complete automation rule, images of any relevant actions / conditions / branches, an image of the audit log details showing the rule execution, and explain what is not working as expected. Those will provide context for the community to offer ideas. Thanks!
Kind regards,
Bill
{{issue.customfield_10399.minus(issue.customfield_10374)}}
this was my automation rule.
it states success but not result.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was asking to see your complete automation rule, for context. Not just the smart value expression you are trying.
It is possible the result is null or empty because of the way the expression is used. Seeing the entire rule and audit log details will help to clarify that.
When posting the audit log details, please show the entire image for the details of the rule execution. That will show which steps did, or did not, execute.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This worked for me.
I used the Custom Field IDs...
To get B-A...
{{issue.customfield_10456.minus(issue.customfield_10123)}}
Ste
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
thats what I did but there's no result that came out. It states success in the audit log.
For the result, what is the data type that can come out with the result? numbers? Strings?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In this instance - A, B, and Result are all number fields. Is this the same in your scenario?
Ste
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.