Skip to content

Instantly share code, notes, and snippets.

@mrcwinn
Created March 26, 2013 00:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mrcwinn/5242145 to your computer and use it in GitHub Desktop.
Save mrcwinn/5242145 to your computer and use it in GitHub Desktop.
Template.project_issues.milestones = function() {
milestones = Milestones.find({projectId: Session.get('currentProjectId')}).fetch();
milestones.forEach(function(milestone) {
issues = Issues.find({projectId: Session.get('currentProjectId')}).fetch();
milestone.issues = [];
milestone.issues.push(issues);
});
return milestones;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment