Request

New method for filtering / #5414

Summary

open
May 30, 2007
May 30, 2007 / oyvind.kinsey
Jun 11, 2007 / oyvind.kinsey
 

Attached files

No files uploaded
In stead of having to choose between open, my open, for milestone etc, one should be able to combine.
Mainly we have All, For Milestone and Without Milestone, which we should be able to combine with open, my open closed etc.
In addition, if one is a Project Manager, one can also set 'for member xxx'.

This would be much more powerful than the current solution.

6 Comments

xl

Jun 1, 2007
yes
this would be a great improvement, together with the possibility to set presets (like now) this would win my gold medal.

oyvind.kinsey

Jun 1, 2007
version 2
Here is how I did it
Just a combination of the existing filters

from /pages/project_more.inc.php

        ### my open tasks for milestone###
        'my_open_tasks_for_milestone' => array(
            'name'=> __('my open, for milestone'),
            'filter_empty_folders'=>true,
            'filters'=> array(
                'task_status'=> array(
                    'id'        => 'task_status',
                    'visible'   => false,
                    'active'    => true,
                    'values'    => array( STATUS_OPEN),
                    'min'       => STATUS_OPEN,
                    'max'       => STATUS_COMPLETED,
                ),
                'for_milestone'   => array(
                    'id'        => 'for_milestone',
                    'visible'   => true,
                    'active'    => true,
                    'value'     => $for_milestone,
                ),
                'assigned_to'   => array(
                    'id'        => 'assigned_to',
                    'visible'   => true,
                    'active'    => true,
                    'value'    =>  $auth->cur_user->id,
                ),


            ),
            'list_settings' => array(
                'tasks' =>array(
                    'hide_columns'  => array(
                        ''
                    ),
                    'style'=> 'list',
                )
            ),
            'new_task_options'=> array(
                'task_assign_to_0'=> $auth->cur_user->id,
            ),

        ),

oyvind.kinsey

Jun 1, 2007
View comment
Any particular reason why the codeblock failed to work, and why I am unable to edit my own comment?

tino

Jun 1, 2007
Hey Sean
you must type [code] instead of [ code]

To edit your comment, just click on the headline of the comment and then you are able to edit it (hope I got you right)

oyvind.kinsey

Jun 1, 2007
Ah..
Earlier there was an edit button in the left margin. (right?)
About the [ code], this was actually copied from the wiki, so maybe this should be fixed?

tino

Jun 1, 2007
Reply to Ah..
I agree with you in both points
 

Comment / Update