Commit e367aafd authored by Mario de la Ossa's avatar Mario de la Ossa Committed by Kushal Pandya

V4::Epic - Add `web_edit_url` and `reference`

parent 3c8e48c3
......@@ -260,6 +260,12 @@ module EE
expose :due_date_is_fixed?, as: :due_date_is_fixed, if: can_admin_epic
expose :due_date_fixed, :due_date_from_milestones, if: can_admin_epic
expose :state
expose :web_edit_url do |epic|
::Gitlab::Routing.url_helpers.group_epic_path(epic.group, epic)
end
expose :reference do |epic|
epic.to_reference(epic.parent&.group)
end
expose :created_at
expose :updated_at
expose :labels do |epic|
......
......@@ -38,7 +38,9 @@
"due_date_is_fixed": { "type": "boolean" },
"state": { "type": "string" },
"created_at": { "type": ["string", "null"] },
"updated_at": { "type": ["string", "null"] }
"updated_at": { "type": ["string", "null"] },
"web_edit_url": { "type": "string" },
"reference": { "type": "string" }
},
"required": [
"id", "iid", "group_id", "title"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment