BigW Consortium Gitlab

issue_entity.rb 400 Bytes
Newer Older
1
class IssueEntity < IssuableEntity
2 3
  include RequestAwareEntity

4 5
  expose :branch_name
  expose :confidential
6
  expose :assignees, using: API::Entities::UserBasic
7 8 9 10 11
  expose :due_date
  expose :moved_to_id
  expose :project_id
  expose :milestone, using: API::Entities::Milestone
  expose :labels, using: LabelEntity
12

13
  expose :web_url do |issue|
14
    project_issue_path(issue.project, issue)
15
  end
16
end