Return Issue#iid instead of id when listing issues

parent c14ac835
...@@ -7,7 +7,7 @@ class Projects::BoardIssuesController < Projects::ApplicationController ...@@ -7,7 +7,7 @@ class Projects::BoardIssuesController < Projects::ApplicationController
issues = Boards::Issues::ListService.new(project, current_user, filter_params).execute issues = Boards::Issues::ListService.new(project, current_user, filter_params).execute
issues = issues.page(params[:page]) issues = issues.page(params[:page])
render json: issues.as_json(only: [:id, :title, :confidential], include: { labels: { only: [:id, :title, :color] } }) render json: issues.as_json(only: [:iid, :title, :confidential], include: { labels: { only: [:id, :title, :color] } })
end end
def update def update
......
{ {
"type": "object", "type": "object",
"required" : [ "required" : [
"id", "iid",
"title", "title",
"confidential" "confidential"
], ],
"properties" : { "properties" : {
"id": { "type": "integer" }, "iid": { "type": "integer" },
"title": { "type": "string" }, "title": { "type": "string" },
"confidential": { "type": "boolean" }, "confidential": { "type": "boolean" },
"labels": { "labels": {
......
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