I have looked through the automation references and other similar automation rules but cannot get my automation to work and would love some insight on what the problem is.
- trigger: when an issue is move to Done
- condition: issue type equals Epic
- action: create a smart variable {{Sum}}
- action: log Initialize {{Sum}} = 0
- branch: to children
- action: log lookup issues count: {{lookupIssues.size|0}}
- action: log lookup issues SP sum {{lookupIssues.Story points.sum|0}}
- action: log Issue key {{issue.key}}
- action: log Issue Story Point {{issue.Story Points}}
- action: {{Sum}} = {{Sum}} + {{issue.Story Points}}
- action: SP Sum is {{Sum}}
Attached is the log debug statements. Thanks in advance
