Forums

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

Using Smart Values need to subtract the number from 2 custom fields and add the output in field

Aswad Deshpande February 4, 2025

Hello, Community

I need assistance. I want to use Smart values below the condition I specified in Automation to subtract two values that are present in numbers under two distinct custom fields and store the result in another custom field, but it isn't producing the output.


{{issue.Time To Detect.-(issue.Time To Resolve)}}

1 answer

2 votes
Jack Brickey
Community Champion
February 4, 2025

Hi @Aswad Deshpande , if these are number fields then you need to use the minus() function. Below is the excerpt from the documentation.

Plus/Minus

Adds or subtracts one numerical smart value with another. For example, you could update the current story point estimate for an issue by adding a point for each subtask. 

{{issue.Story Points.plus(issue.subtasks.size)}}

So in your example ...

{{issue.Time To Detect.minus (issue.Time To Resolve)}}

Jack Brickey
Community Champion
February 4, 2025

If they are dates use the diff() function...

{{issue.Time To Detect.diff(issue.Time To Resolve)}}

Aswad Deshpande February 4, 2025

Hi @Jack Brickey 

That is a number where I have computed the difference in minutes, not a date format.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events