Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cloud_users_mapper_service.rb « jira_import « services « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: b1c7aac584f260eb3e6deefe058287c5945ae541 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

module JiraImport
  class CloudUsersMapperService < UsersMapperService
    private

    def url
      "/rest/api/2/users?maxResults=#{MAX_USERS}&startAt=#{start_at.to_i}"
    end

    def jira_user_id(jira_user)
      jira_user['accountId']
    end

    def jira_user_name(jira_user)
      jira_user['displayName']
    end
  end
end