2017-08-17 22:00:37 +05:30
|
|
|
class IssueEntity < IssuableEntity
|
2017-09-10 17:25:29 +05:30
|
|
|
include RequestAwareEntity
|
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
expose :branch_name
|
|
|
|
expose :confidential
|
|
|
|
expose :assignees, using: API::Entities::UserBasic
|
|
|
|
expose :due_date
|
|
|
|
expose :moved_to_id
|
|
|
|
expose :project_id
|
|
|
|
expose :milestone, using: API::Entities::Milestone
|
|
|
|
expose :labels, using: LabelEntity
|
2017-09-10 17:25:29 +05:30
|
|
|
|
|
|
|
expose :web_url do |issue|
|
|
|
|
project_issue_path(issue.project, issue)
|
|
|
|
end
|
2017-08-17 22:00:37 +05:30
|
|
|
end
|