2016-11-19 02:19:04 +00:00
|
|
|
class IssueEntity < IssuableEntity
|
2017-05-17 12:01:24 +00:00
|
|
|
include RequestAwareEntity
|
|
|
|
|
2016-11-19 02:19:04 +00:00
|
|
|
expose :branch_name
|
|
|
|
expose :confidential
|
2017-05-04 12:11:15 +00:00
|
|
|
expose :assignees, using: API::Entities::UserBasic
|
2016-11-19 02:19:04 +00:00
|
|
|
expose :due_date
|
|
|
|
expose :moved_to_id
|
|
|
|
expose :project_id
|
|
|
|
expose :milestone, using: API::Entities::Milestone
|
|
|
|
expose :labels, using: LabelEntity
|
2017-05-17 12:01:24 +00:00
|
|
|
|
2017-05-25 10:20:52 +00:00
|
|
|
expose :web_url do |issue|
|
2017-05-17 12:01:24 +00:00
|
|
|
namespace_project_issue_path(issue.project.namespace, issue.project, issue)
|
|
|
|
end
|
2016-11-19 02:19:04 +00:00
|
|
|
end
|