json.total_issues_count @total_issues_count
json.opened_count @opened_issues_count
json.closed_count @closed_issues_count
json.complete_count @complete_issues_count
json.total_count @issues.total_count 
json.has_created_issues @project.present? ? @project.issues.size > 0 : 0
json.issues @issues.each do |issue| 
  if params[:only_name].present? 
    json.(issue, :id, :subject, :project_issues_index)
  else 
    json.partial! "api/v1/issues/simple_detail", locals: {issue: issue}
  end
end