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?
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event