Jira Connect App: Use a GraphQL query to get the list of group

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

The following discussion from !51061 (merged) should be addressed:

  • @justin_ho started a discussion: (+3 comments)

    could we use a GraphQL query to get the list of groups? Doing so would handle pagination. The query might look something like this:

{
    user(username: "tomquirk") {
    name
      groupMemberships {
      edges {
        node {
          group {
            name
          }
          accessLevel {
            integerValue
          }
        }
      }
      pageInfo {
        endCursor
        hasNextPage
      }
    }
  }
}
Edited by 🤖 GitLab Bot 🤖