Using set field value post-function (JMWE add-on) to calculate a value

Ladislav Zástěra
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 9, 2018

Hello comunity,

did someone solve how to calculate a value based on other values and its quantities? My idea is to have JIRA issue (order) with subtasks (items), these subtasks has item price and quantity. In the main task should be field with calculated value of the order. I think about workflow post-function Set field value (JMWE add-on) and for cycle in Nunjucks. Something like this:

FinalAmount = 0
for each Subtask
FinalAmount = FinalAmount + Amount * Quantity.

Here I am not sure how can I define all subtasks of the main task. Any idea on this?

Thanks, L.

0 comments

Comment

Log in or Sign up to comment
TAGS
AUG Leaders

Atlassian Community Events