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

server_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: d38d134f55c189266cd8c6816d93fa9943e398cf (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 ServerUsersMapperService < UsersMapperService
    private

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

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

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