<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
  <title>aC forum: Filter tasks by person</title>
  <link>http://www.activecollab.com/forums/topic/1303/</link>
  <description>Recent posts on topic: Filter tasks by person</description>
  <dc:language>en-us</dc:language>
  <pubDate>Sun, 23 Nov 2008 13:31:50 UTC</pubDate>
  
  <item>
    <link>http://www.activecollab.com/forums/post/6086/#post6086</link>
    <guid>http://www.activecollab.com/forums/post/6086/#post6086</guid>
    <title>Post #3 by Eamon</title>
    <dc:creator>Eamon</dc:creator>
    <description><![CDATA[<p>I wanted to do the same thing, list tasks by user, so I wrote these scripts, just save in files in your web-accessible directory. Ok to use until the feature is officially supported :)<br />
<br />
Save as whatever name you want e.g. form.html (this is where you enter the name):<br />
<br />
&lt;form action=&quot;usertasks.php&quot; method=&quot;post&quot;&gt;<br />
 &lt;p&gt;Name: &lt;input type=&quot;text&quot; name=&quot;name&quot; /&gt;&lt;/p&gt;<br />
 &lt;p&gt;&lt;input type=&quot;submit&quot; /&gt;&lt;/p&gt;<br />
&lt;/form&gt;<br />
<br />
<br />
Save as usertasks.php (replace host, mysqluser and mysqlpassword):<br />
<br />
&lt;?php<br />
<br />
$link = mysql_connect('host', 'mysqluser', 'mysqlpassword');<br />
if (!$link) {<br />
   die('Could not connect: ' . mysql_error());<br />
}<br />
<br />
mysql_select_db('activecollab') or die('Could not connect: ' . mysql_error());<br />
<br />
// This could be supplied by a user, for example<br />
$name = $_POST['name'];<br />
<br />
$query = sprintf(&quot;select p.name, tl.name, pt.text from <br />
			ac_users as u <br />
			join ac_project_tasks as pt on u.id = pt.assigned_to_user_id<br />
			join ac_project_task_lists as tl on tl.id = pt.task_list_id<br />
			join ac_projects as p on p.id = tl.project_id<br />
			where u.username = '%s';&quot;,<br />
   mysql_real_escape_string($name));<br />
<br />
$result = mysql_query($query);<br />
<br />
if (!$result) {<br />
   $message  = 'Invalid query: ' . mysql_error() . &quot;\n&quot;;<br />
   $message .= 'Whole query: ' . $query;<br />
   die($message);<br />
}<br />
<br />
echo('&lt;table border=\&quot;1&quot;&gt;');<br />
while ($row = mysql_fetch_array($result, MYSQL_NUM)) {<br />
   printf(&quot;&lt;tr&gt;&lt;td&gt;%s&lt;td&gt;%s&lt;td&gt;%s&lt;br&gt;&quot;, $row[0], $row[1], $row[2]); <br />
}<br />
echo('&lt;table/&gt;');<br />
<br />
<br />
// Free the resources associated with the result set<br />
// This is done automatically at the end of the script<br />
mysql_free_result($result);<br />
<br />
<br />
mysql_close($link);<br />
<br />
<br />
exit;<br />
?&gt; </p>]]></description>
    <pubDate>Wed, 24 Jan 2007 04:07:44 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/6050/#post6050</link>
    <guid>http://www.activecollab.com/forums/post/6050/#post6050</guid>
    <title>Post #2 by Ilija Studen</title>
    <dc:creator>Ilija Studen</dc:creator>
    <description><![CDATA[<p>It is not possible at the moment. I know it would be useful and it will be included at some point.</p>]]></description>
    <pubDate>Sun, 21 Jan 2007 21:57:46 UTC</pubDate>
  </item>
  <item>
    <link>http://www.activecollab.com/forums/post/6049/#post6049</link>
    <guid>http://www.activecollab.com/forums/post/6049/#post6049</guid>
    <title>Post #1 by Chris</title>
    <dc:creator>Chris</dc:creator>
    <description><![CDATA[<p>First of all: I'm really loving aC! But I have one 'problem' I'm not getting: is it possible to show all the tasks assigned to a certain person? So I could select a person, and see all the tasks that are currently assigned to him.<br />
<br />
Thnx in advance,<br />
Chris</p>]]></description>
    <pubDate>Sun, 21 Jan 2007 21:25:36 UTC</pubDate>
  </item>
</channel>
</rss>