Forums

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

Sum of 2 fields for a third field

Administrator November 9, 2021

Good afternoon (my English is not very good).

I need to add two fields and have this value in a third field.
The numeric field "A" counts a time within a transition in the workflow.
The numeric field "B" counts another time within another transition in the workflow.
I need the numeric field "C" to sum up the numbers of fields "A" and "B".
I used the following automation:
Field "A" --> {{issue.created.diff(now).minutes}}
Field "B" --> {{issue.created.diff(now).minutes}}
Field "C" --> {{# =}} {{issue.customfield_10183}} + {{issue.customfield_10185}} {{/}}

When I open a ticket and transition it between statuses, field A and B are filled in, but field C is not.
However, by entering the values of field A and B manually, field "C" does the sum.

What do I do to fix it?

Grateful.

1 answer

1 accepted

0 votes
Answer accepted
Sebastian Krzewiński
Community Champion
November 9, 2021

Hi @Administrator 

 

Please share how looks your rule

 

--- EDIT ---

You need to have 2 rules:

- first rule will be triggered on transition action

- second rule will be triggered when field A or B will be updated

Administrator November 12, 2021

Hi Sebastian.

Get it done!

Thanks for listening.

Suggest an answer

Log in or Sign up to answer