classIssuesListContext<BaseContextincludeIssuesHelperattr_accessor:issuesdefexecute@issues=caseparams[:f]whenissues_filter[:all]then@project.issueswhenissues_filter[:closed]then@project.issues.closedwhenissues_filter[:to_me]then@project.issues.opened.assigned(current_user)else@project.issues.openedend@issues=@issues.tagged_with(params[:label_name])ifparams[:label_name].present?@issues=@issues.includes(:author,:project).order("updated_at")# Filter by specific assignee_id (or lack thereof)?ifparams[:assignee_id].present?@issues=@issues.where(assignee_id: (params[:assignee_id]=='0'?nil:params[:assignee_id]))end# Filter by specific milestone_id (or lack thereof)?ifparams[:milestone_id].present?@issues=@issues.where(milestone_id: (params[:milestone_id]=='0'?nil:params[:milestone_id]))end@issuesendend