GitLab for Jira - Allow admins to view and link all groups
What does this MR do and why?
A previous MR !126110 (merged) attempted to fix this issue but the solution but did not consider all scenarios and was reverted.
In the GitLab for Jira app, admins should be able to view and link all groups on the instance, even when they are not direct maintainers of that group.
This change moves the logic to set min_access_level
from the backend helper to frontend to allow omitting this param when user is an admin.
Changelog: changed
Screenshots or screen recordings
Before | After (for admins) | After (for maintainers) |
---|---|---|
![]() |
![]() |
![]() |
How to set up and validate locally
- Setup the GitLab for Jira app with this guide: https://docs.gitlab.com/ee/development/integrations/jira_connect.html#simple-setup.
- Select GitLab.com (though we will be using GDK). Then login and click Link groups.
- (In a new tab, if not already available) Create a new user and a group under that user (admin must not be a member).
- Refresh the GitLab for Jira app and click Link groups. See that the newly created group is now visible.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #411768 (closed)