Forums

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

Substracting field values not working.

Jouni Riimala
Contributor
July 6, 2022

 

I have Story point estimate field and Story Points fields and result field named Diff to which I would like to have subtraction from Story point estimate and Story points.

 

In my jira automation rule smart value section I'm using 

{{issue.Story point estimate.minus(issue.Story Points)}}

nor by adding {{#=}} front of it.

 

But it doesn't seem to work, what I'm doing wrong ? 

substract.PNG

 

1 answer

1 accepted

3 votes
Answer accepted
Alex Koxaras -Relational-
Community Champion
July 7, 2022

Hi @Jouni Riimala 

I'm getting good results with the exact same code:

minus.pngresults001.png

 

What are the results you are getting? Try adding a log action to log the values of the two fields, like I did in the above rule. Perhaps the Diff field is not in the edit screen. :/

Alex

Jouni Riimala
Contributor
July 7, 2022

I didn't get any value due to my invalid process (now fixed). Problem was that when I did branching and thought that I need to get results to parent issue that was my major mistake. Did a while ago summing of sub tasks to stories, which somehow impacted to my thinking. 

Thanks from your example and advice to use also
logging.

Alex Koxaras -Relational-
Community Champion
July 7, 2022

Logging helps you understand what actions to take!

I'm glad you sorted this thing out :) 

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