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