We want to retrieve the list of teams subscribed to a board with the type “subscriber” or “owner” as for the user. We can see that it’s possible to add a team to a board with th add-teams-to-a-board mutation. However we can’t retrieve the teams of board on the query boards fields Boards dispate of the api playgraound auto-complete suggests a “team_owners” parameter which return nothing.
Does it possible or that is a current limit of the api ?
Thanks for your try ! However this request gives the teams of the owners and the subscribers of the board but not the teams directly added on the board.
{
boards(ids: 1234567890) {
subscribers {
name
id
teams {
name
users {
id
name
}
id
}
}
}
}
You will get the information about the team added to the board.
If instead of that, what you want is to check the teams that are assigned to a people column in a board, you can query for the information inside the people column for the items and see the response.
By your way, we retrieve all the teams of the subscribers not the team added on the board. If mathias is not on “Team Two” but he is on “Team One”, the result of the query will return 3 subscribers :
mathias with at least “Team One” in his list of teams
the 2 members of Team Two with at least “Team Two” in their list of teams but maybe aussi their other teams
We don’t have an API query to retrieve the exact config of board members as the screenshoot you mentionned :
The team you see in my screenshot (or as you call it an “added team”) is subscribed to the board. When I add the team via UI, I am subscribing the team. It is the same thing. I think you are just calling it differently.
And this query will get you that team:
{
boards(ids: 1234567890) {
subscribers {
name
id
teams {
name
users {
id
name
}
id
}
}
}
}
Hi,
I believe my problem/question is the same as @CedricMourizard so that’s why I am replying here, and I do not think the query that you suggested will retrieve exactly the teams subscribed to the board.
For example, I have two teams (1stTeam and 2ndTeam).
If I use the query that you specified, I cannot actually distinguish if only a member of X team is part of the board, or the team itself is a member of the board.
I have the same question which has still not been answered.
I would like to be able to read all the teams assigned to a board (via the API)
This means that they are displayed in a similar way to subscriber and owner.
Done like so: query { boards (ids: 123456789) { subscribers { id } owners { id } items_count board_kind workspace { id name kind description } } }
Of course, it would be best if the users who are assigned via a team do not appear in the subscriber or owner list. Only the explicitly authorised persons should be listed there. This would show the real status of the permissions.
Thank you for your answer. This query is exactly what I was looking for, thank you very much. Info: this query is only available since version 2024-07.