json.total_count @issue_tags.total_count
json.issue_tags @issue_tags.each do |tag| 
  if params[:only_name]
    json.partial! "api/v1/issues/issue_tags/simple_detail", locals: {tag: tag}
  else 
    json.partial! "api/v1/issues/issue_tags/detail", locals: {tag: tag}
  end
end