|
|
|
@@ -21,7 +21,7 @@ class Api::Pm::ProjectsController < Api::Pm::BaseController |
|
|
|
end |
|
|
|
@participant_category_count = {} |
|
|
|
if params[:participant_category].to_s == "authoredme" or params[:participant_category].to_s == "assignedme" |
|
|
|
issues_category = @issues.joins(:issue_participants).where(issue_participants: {participant_type: %w[authored assigned atme], participant_id: current_user&.id}) |
|
|
|
issues_category = @issues.joins(:issue_participants).where(pm_issue_type: [1, 2, 3]).where(issue_participants: {participant_type: %w[authored assigned atme], participant_id: current_user&.id}) |
|
|
|
@participant_category_count = issues_category.group(:pm_project_id, "issue_participants.participant_type").count |
|
|
|
end |
|
|
|
case params[:participant_category].to_s |
|
|
|
|