<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Reporting querry - Select incidents by user's department (Thread)</title><description> Hi, &#xD;
 I'm trying to  build  a querry which will extract all incidents for a project which were raised by members of the same department. &#xD;
 I was able to create some of the pieces of the querry (see below) but I am not able to put them together into a single querry so that I get the report I'm after. Anyone able to provide some help with this? &#xD;
  select value R from SpiraTestEntities.R_Incidents as R where R.PROJECT_ID = ${ProjectId} select value R from SpiraTestEntities.R_Incidents as R where R.OWNER_ID = 'Tom'   select R.USER_ID from SpiraTestEntities.R_Users as R where R.DEPARTMENT= 'ICT'  &#xD;
  I am able to select the incidents by user and the users which are part of the ICT department, however I don't know how to combine it all together.  &#xD;
 Thanks for any help. </description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/spirateam/issues-questions/718.aspx</link><item><guid isPermaLink="false">threadId=718</guid><author>Thomas Toth (fsh-spirateam@serco-ap.com.au)</author><title>Reporting querry - Select incidents by user's department</title><description> Hi, &#xD;
 I'm trying to  build  a querry which will extract all incidents for a project which were raised by members of the same department. &#xD;
 I was able to create some of the pieces of the querry (see below) but I am not able to put them together into a single querry so that I get the report I'm after. Anyone able to provide some help with this? &#xD;
  select value R from SpiraTestEntities.R_Incidents as R where R.PROJECT_ID = ${ProjectId} select value R from SpiraTestEntities.R_Incidents as R where R.OWNER_ID = 'Tom'   select R.USER_ID from SpiraTestEntities.R_Users as R where R.DEPARTMENT= 'ICT'  &#xD;
  I am able to select the incidents by user and the users which are part of the ICT department, however I don't know how to combine it all together.  &#xD;
 Thanks for any help. </description><pubDate>Fri, 20 Sep 2013 02:04:21 -0400</pubDate><a10:updated>2013-10-03T06:09:59-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/718.aspx</link></item><item><guid isPermaLink="false">messageId=1306</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> &#xD;
&#xD;
&#xD;
Hi Thomas  Something like:   select value R from SpiraTestEntities.R_Incidents as R where R.P</title><description> &#xD;
&#xD;
&#xD;
Hi Thomas  Something like:   select value R from SpiraTestEntities.R_Incidents as R where R.PROJECT_ID = ${ProjectId} and R.OWNER_ID = 'Tom' and R.DEPARTMENT = 'ICT'    Regards    Adam  </description><pubDate>Tue, 24 Sep 2013 15:26:06 -0400</pubDate><a10:updated>2013-09-24T15:26:06-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/718.aspx#reply1306</link></item><item><guid isPermaLink="false">messageId=1311</guid><author>Thomas Toth (fsh-spirateam@serco-ap.com.au)</author><title> Sorry for the late feedback, I only saw your reply today. &#xD;
 Unfortunately that doesn't work as R_I</title><description> Sorry for the late feedback, I only saw your reply today. &#xD;
 Unfortunately that doesn't work as R_Incidents doesn't have R.REPARTMENT in it. I need to find a way to join the two tables based on the user_id. &#xD;
 I get the error message 'DEPARTMENT' is not a member of type 'Inflectra.SpiraTest.DataModel.R_Incident' in the currently loaded schemas. Near simple identifier, line 1, column 86'. &#xD;
   </description><pubDate>Thu, 03 Oct 2013 06:09:59 -0400</pubDate><a10:updated>2013-10-03T06:09:59-04:00</a10:updated><link>/Support/Forum/spirateam/issues-questions/718.aspx#reply1311</link></item></channel></rss>