Hello all,
I'm trying to automate an email when completing a sprint with the following information:
------------------------
During this sprint we completed X story and X tasks.
During this sprint, we resolved X bugs.
Stories Completed:
/List all story completed
Tasks Completed:
/List all tasks completed
Bugs Resolved:
/List all Bugs resolved
--------------------------
Below is my code, can you help identify why it is not working? I have tested a dozen time with different iterations and can't figure it out... Thanks!!!
Sprint {{sprint.name}} was completed.
During this sprint, {{#lookupIssues("project = PROJECT AND issuetype = Story AND status = Done AND Sprint = sprint.name").size}} story and {{#lookupIssues("project = PROJECT AND issuetype = Tasks AND status = Done AND Sprint = sprint.name").size}}tasks were completed.
During this sprint, {{#lookupIssues("project = PROJECT AND issuetype = Bugs AND status = Done AND Sprint = sprint.name").size}} Bugs were resolved.
Stories Completed:
{{#lookupIssues("project = PROJECT AND sprint = '" + {{sprint.name}} + "' AND issuetype = Story AND status = Done")}}
- {{key}}: {{summary}}
{{/}}
Tasks Completed:
{{#lookupIssues("project = PROJECT AND sprint = '" + {{sprint.name}} + "' AND issuetype = Task AND status = Done")}}
- {{key}}: {{summary}}
{{/}}
Bugs Resolved:
{{#lookupIssues("project = PROJECT AND sprint = '" + {{sprint.name}} + "' AND issuetype = Bug AND status = Resolved")}}
- {{key}}: {{summary}}
{{/}}