-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support GitLab groups/subgroups when querying API for projects/issues #2529
Comments
Thank you very much for opening up this issue! I am currently a bit overwhelmed by the many requests that arrive each week, so please forgive me, if I fail to respond personally. I am still very likely to at least skim read your request and I'll probably try to fix all (real) bugs if possible and I will likely review every single PR being made (please, give me a heads up if you intent to do so) and I will try to work on popular requests (please upvote via thumbs up on the original issue) whenever possible, but trying to respond to every single issue over the last years has been kind of draining and I need to adjust my approach for this project to remain fun for me and to make any progress with actually coding new stuff. Thanks for your understanding! |
You need to either put a group path at the top and select: "Group" as source Or you need to put a project path and select "Project" as source. Both work fine for me even for subgroups. You need to paste the full group/project path too, so if you have a company group called: CompanyA with a subgroup Teams you need to put CompanyA/Teams/BackendTeam Let me know if you have further issues. Edit: It might be that subgroup sources don't work correctly after all, I apparently was trying with project in subgroup which works fine. Standard group sources and project sources work fine though. |
Attempting this again: Subgroup
Top-level group
ProjectIf I repeat all of these same but for a specific repo, say https://gitlab.com/company/mobile-app, everything works, because it's using the SummarySo, I think pulling issues for an entire group is broken. There is code for handling groups, but it doesn't seem to be working: super-productivity/src/app/features/issue/providers/gitlab/gitlab-api/gitlab-api.service.ts Lines 397 to 401 in 9efed16
|
This issue has not received any updates in 90 days. Please comment, if this still relevant! |
This issue is still relevant when getting notes or the issue detail itself is still giving an error. I would love it if anyone could help with this issue or give hints. Personally, this is very disturbing. Since, sometimes not all of my issue is loaded and even if it does it always shows an error popup. When trying to get issues by its iids it will be an error since it will hit I'm currently trying to understand the codebase and the GitLab API itself. So far what I got is: Getting by iidsGROUPWhen getting by iids it should still hit the groups endpoint but it currently hits the projects endpoint since we passed projects arguments from the GitLab config. Which is the group name, not the project name. I tried to fix it by changing the if (
(project !== projectConfig.project && projectConfig.project !== 'group') ||
projectConfig.source === 'project'
) {
apiURL += 'projects/' + projectURL;
} else if (projectConfig.source === 'group') {
apiURL += 'groups/' + projectURL;
} I checked whether the project that is passed is the same as the config and if it's not group it goes to group. Changing it into a switch and handling it inside switch case might be better. ALLI haven't checked this but with the fix above it will try to hit projects with our username that is set Get issue detailThe issue is the same as it doesn't hit the proper projects, I tried to get from single issues endpoint but it's administrator only. I'm thinking it should pass the proper project id so the |
is it possible to open this issue since it's still relevant? @johannesjo |
In version 10.0.11 on Windows 11, I can successfully access the issues for all group projects using the GitLab integration. I still can't use it because on the second automatic pull all issues are added again, so I get duplicates of issues I already have in my list. This doesn't happen if I use "Project" as source instead of "Group" in the integration settings. In my eyes this problem is part of the GitHub issue and I just want to mention it here. Please let me know if it's not a problem at all and can be fixed by changing the configuration. |
Hi, after some month I tried the gitlab integration again. I found out that currently the "source" option is no longer available. I still have the requirement to search for issues on a group or instance level. Adding multiple Providers is not a option because there are many projects and they also change often. I therefore propose the following change:
I will look into this in the next days and see if I can create a small merge request. Any hints or improvements on this proposal are welcome. I have not looked into the datamodel if we need to change it to save the project of the issues to make the requests for "/projects/:id/issues/:id" etc. possible in this scheme as we could have issues from multiple project when searching for "group" or "instance" issues. Tips on this are also very welcome. Kind regards |
Hi, this would be my proposal for the instance/group issue search feature: !3901 While testing I found that the submission of spent time seems to not be working also. I might look into this if I could find time. |
Problem Statement
I'm trying to set up the GitLab.com integration, and my current settings aren't working no matter what values I use. In this case, my company's GitLab org (we'll call it

company
) has abackend-team
subgroup.❔ Possible Solution
Regardless of what "source" I set, the app tries to call the
/projects/<group>/issues
endpoint. From what I can tell, the official GitLab API docs don't mention that specific endpoint: https://docs.gitlab.com/ee/api/rest/index.htmlIf you instead use the
/groups/<group>%2<subgroup>/projects
(the%2
is important) endpoint to get a list of projects and then iterate over that list of project IDs, you could get the issues from the/projects/<id>/issues
endpoint.I've also tried just using the top-level group for the company, but that doesn't seem to work either.
➕ Additional context
Relevant existing/closed issues and PRs:
The text was updated successfully, but these errors were encountered: