Method: SystemNotes::IssuablesService#relate_issuable

Defined in:
app/services/system_notes/issuables_service.rb

#relate_issuable(noteable_ref) ⇒ Object

noteable_ref - Referenced noteable object, or array of objects

Example Note text:

"marked this issue as related to gitlab-foss#9001"
"marked this issue as related to gitlab-foss#9001, gitlab-foss#9002, and gitlab-foss#9003"

Returns the created Note object



35
36
37
38
39
# File 'app/services/system_notes/issuables_service.rb', line 35

def relate_issuable(noteable_ref)
  body = "marked this #{noteable_name} as related to #{extract_issuable_reference(noteable_ref)}"

  create_note(NoteSummary.new(noteable, project, author, body, action: 'relate'))
end