Hello everyone,
Related post on reddit with no replies to date.
I’m looking for an efficient way to manage projects and teams. I have Person notes a Rolodex folder where each person’s project Teams and Roles are assigned using YAML front matter. With this data I want to create :
-
A dataview query in each Person Note listing the teams that person is a member of and their roles in each team. I have this working, see below.
-
A dataview query in each Project Note listing the team members for roles within that project. The Project Note for “Project A” lists the team members from “Team A” and role of each person in the project (and only that project). This is not working for me.
Things I have tried
YAML front matter for Person Notes contain Team.Name and Team.Role values:
Person 1.md
NoteType: person Team: [{Name: Team A, Role: Scrum Master},{Name: Team B, Role: Developer} ]` ---
Person 2.md
NoteType: person Team: [{Name: Team A, Role: Stakeholder},{Name: Team B, Role: Product Owner} ] ---
The following dataview query shows all the teams a person belongs to and their role. This query runs correctly within each Person note:
Teams
```dataview
TABLE without ID link(Team.Name) as “Team”,
Team.Role as “Role”
FROM “”
WHERE file.name = this.file.name
SORT Team ASC
```
In the Project A note I want to list the people who are a member of that project based on the Team name and role for that project. If I use the following WHERE statement, the Project will list the person’s roles in ALL teams, not just Team A, which is not what I want to show in the Team A Project note:
WHERE contains(Team.Name, “Team A”)
The following query for the Team A Project currently shows no results.
Project A.md
Project A Team Members and Roles
```dataview
TABLE WITHOUT ID file.link AS “Person”, Team.Name as Name, Team.Role as Role
FROM “”
WHERE Team.Name = “Team A”
SORT Name ASC
```
My questions
- What am I doing wrong in the Project Query or YAML front matter?
- Is there a better way to assign, manage, and query Team membership and roles for people and projects?
Thanks for your help!