2021-03-11 19:13:27 +05:30
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
xml.entry do
|
2017-09-10 17:25:29 +05:30
|
|
|
xml.id project_issue_url(issue.project, issue)
|
|
|
|
xml.link href: project_issue_url(issue.project, issue)
|
2016-06-16 23:09:34 +05:30
|
|
|
xml.title truncate(issue.title, length: 80)
|
2017-08-17 22:00:37 +05:30
|
|
|
xml.updated issue.updated_at.xmlschema
|
2018-03-27 19:54:05 +05:30
|
|
|
xml.media :thumbnail, width: "40", height: "40", url: image_url(avatar_icon_for_user(issue.author))
|
2016-06-16 23:09:34 +05:30
|
|
|
|
|
|
|
xml.author do
|
|
|
|
xml.name issue.author_name
|
2017-08-17 22:00:37 +05:30
|
|
|
xml.email issue.author_public_email
|
2016-06-16 23:09:34 +05:30
|
|
|
end
|
|
|
|
|
|
|
|
xml.summary issue.title
|
|
|
|
xml.description issue.description if issue.description
|
2019-09-04 21:01:54 +05:30
|
|
|
xml.content issue.description if issue.description
|
2016-06-16 23:09:34 +05:30
|
|
|
xml.milestone issue.milestone.title if issue.milestone
|
|
|
|
xml.due_date issue.due_date if issue.due_date
|
|
|
|
|
|
|
|
unless issue.labels.empty?
|
|
|
|
xml.labels do
|
|
|
|
issue.labels.each do |label|
|
|
|
|
xml.label label.name
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
if issue.assignees.any?
|
|
|
|
xml.assignees do
|
|
|
|
issue.assignees.each do |assignee|
|
|
|
|
xml.assignee do
|
|
|
|
xml.name assignee.name
|
|
|
|
xml.email assignee.public_email
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
2016-06-16 23:09:34 +05:30
|
|
|
xml.assignee do
|
2017-08-17 22:00:37 +05:30
|
|
|
xml.name issue.assignees.first.name
|
|
|
|
xml.email issue.assignees.first.public_email
|
2016-06-16 23:09:34 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|