add Pm issues link_index
This commit is contained in:
parent
c752671453
commit
ec43b9e97d
|
@ -20,11 +20,12 @@ class Api::Pm::IssuesController < Api::Pm::BaseController
|
||||||
end
|
end
|
||||||
|
|
||||||
def link_index
|
def link_index
|
||||||
|
object_issues = Issue.includes(:pm_links).where( pm_project_id: params[:pm_project_id], root_id: nil ).where.not(pm_links: { linkable_id: params[:id] } )
|
||||||
|
@issues = kaminari_paginate(object_issues)
|
||||||
|
render 'api/v1/issues/index'
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def show
|
def show
|
||||||
@issue.associate_attachment_container
|
@issue.associate_attachment_container
|
||||||
render 'api/v1/issues/show'
|
render 'api/v1/issues/show'
|
||||||
|
|
|
@ -9,6 +9,10 @@ defaults format: :json do
|
||||||
get :tags
|
get :tags
|
||||||
get :statues
|
get :statues
|
||||||
end
|
end
|
||||||
|
member do
|
||||||
|
get :link_index
|
||||||
|
end
|
||||||
|
|
||||||
resources :issue_links
|
resources :issue_links
|
||||||
|
|
||||||
resources :journals do
|
resources :journals do
|
||||||
|
|
Loading…
Reference in New Issue