Skip to content
Snippets Groups Projects
Commit e8a012a1 authored by ayeaye's avatar ayeaye
Browse files

For groups: recurse all projects within it [ hack! ]

parent cfcb5002
Branches
No related merge requests found
...@@ -14,9 +14,13 @@ allco = groups(ATTR.COMPANY) ...@@ -14,9 +14,13 @@ allco = groups(ATTR.COMPANY)
def gantt(pid, group): def gantt(pid, group):
if group == "True": if group == "True":
project = gl.groups.get(pid, lazy=True) grp = gl.groups.get(pid, lazy=True)
else: issues = []
project = gl.projects.get(pid, lazy=True) for proj in grp.projects.list(all=True, as_list=False):
issues += gantt(proj.id, False)
return issues
project = gl.projects.get(pid, lazy=True)
def makeIssue(issue, isMilestone = False): def makeIssue(issue, isMilestone = False):
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment