Class: Jira::Requests::Issues::ListService

Inherits:
Base
  • Object
show all
Extended by:
Gitlab::Utils::Override
Defined in:
app/services/jira/requests/issues/list_service.rb

Direct Known Subclasses

CloudListService, ServerListService

Constant Summary collapse

PER_PAGE =
100
DEFAULT_FIELDS =
%w[assignee created creator id issuetype key
labels priority project reporter resolutiondate
status statuscategorychangeddate summary updated description].join(',').freeze

Constants inherited from Base

Base::ALL_ERRORS, Base::ERRORS, Base::JIRA_API_VERSION, Base::JIRA_ERROR_JSON_SIZE_LIMIT

Instance Method Summary collapse

Methods included from Gitlab::Utils::Override

extended, extensions, included, method_added, override, prepended, queue_verification, verify!

Methods inherited from Base

#execute

Methods included from SafeFormatHelper

#safe_format, #tag_pair

Constructor Details

#initialize(jira_integration, params = {}) ⇒ ListService

Returns a new instance of ListService.



14
15
16
17
18
19
# File 'app/services/jira/requests/issues/list_service.rb', line 14

def initialize(jira_integration, params = {})
  super(jira_integration, params)

  @jql = params[:jql].to_s
  @per_page = (params[:per_page] || PER_PAGE).to_i
end