item.rb 467 B

1234567891011121314151617
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Service::Ticket::ExternalReferences::IssueTracker::Item < Service::Ticket::ExternalReferences::IssueTracker::Base
  3. attr_reader :issue_link
  4. def initialize(type:, issue_link:)
  5. super(type:)
  6. @issue_link = issue_link
  7. end
  8. def execute
  9. Service::CheckFeatureEnabled.new(name: integration_setting_name).execute
  10. issue_tracker_object.issue_by_url(issue_link)
  11. end
  12. end