<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Custom report biased on variable (Thread)</title><description>&#xD;
Hi&#xD;
&#xD;
    I would like to create a new custom report (not based on the standard reports) per release.  How can I pass the release number as a variable to the query?     This is my query:     select R.TEST_CASE_ID, R.RELEASE_VERSION_NUMBER, R.TEST_SET_NAME, R.NAME, C.TEST_CASE_PRIORITY_NAME, R.EXECUTION_STATUS_NAME from SpiraTestEntities.R_TestRuns as R  inner join (select max (TR.TEST_RUN_ID) as LAST_TEST_RUN_ID from (  SpiraTestEntities.R_TestRuns) as TR where TR.PROJECT_ID = ${ProjectId} and TR.RELEASE_VERSION_NUMBER = "5.0-PR2" GROUP BY TR.TEST_SET_TEST_CASE_ID)  as T on R.TEST_RUN_ID = T.LAST_TEST_RUN_ID  inner join SpiraTestEntities.R_TestCases as C on R.TEST_CASE_ID = C.TEST_CASE_ID  ORDER BY C.TEST_CASE_PRIORITY_NAME, R.EXECUTION_STATUS_NAME, R.TEST_SET_NAME      And I want to replace the release version number  "5.0-PR2" by a variable, so the user can create the report by the relevant release.         Thanks,   Taha Massalha. </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/spiratest/issues-questions/1010.aspx</link><item><guid isPermaLink="false">threadId=1010</guid><author>taha massalha (taha@annapurnalabs.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">reporting</category><title>Custom report biased on variable</title><description>&#xD;
Hi&#xD;
&#xD;
    I would like to create a new custom report (not based on the standard reports) per release.  How can I pass the release number as a variable to the query?     This is my query:     select R.TEST_CASE_ID, R.RELEASE_VERSION_NUMBER, R.TEST_SET_NAME, R.NAME, C.TEST_CASE_PRIORITY_NAME, R.EXECUTION_STATUS_NAME from SpiraTestEntities.R_TestRuns as R  inner join (select max (TR.TEST_RUN_ID) as LAST_TEST_RUN_ID from (  SpiraTestEntities.R_TestRuns) as TR where TR.PROJECT_ID = ${ProjectId} and TR.RELEASE_VERSION_NUMBER = "5.0-PR2" GROUP BY TR.TEST_SET_TEST_CASE_ID)  as T on R.TEST_RUN_ID = T.LAST_TEST_RUN_ID  inner join SpiraTestEntities.R_TestCases as C on R.TEST_CASE_ID = C.TEST_CASE_ID  ORDER BY C.TEST_CASE_PRIORITY_NAME, R.EXECUTION_STATUS_NAME, R.TEST_SET_NAME      And I want to replace the release version number  "5.0-PR2" by a variable, so the user can create the report by the relevant release.         Thanks,   Taha Massalha. </description><pubDate>Sat, 20 Sep 2014 17:39:15 -0400</pubDate><a10:updated>2014-09-22T15:57:16-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1010.aspx</link></item><item><guid isPermaLink="false">messageId=1842</guid><author>Jim R (donotreply5@kronodesk.net)</author><title>&#xD;
Hi Taha  Currently only ProjectId and ProjectGroupId are available as variables. We have an open e</title><description>&#xD;
Hi Taha  Currently only ProjectId and ProjectGroupId are available as variables. We have an open enhancement to pass through additional variables to a custom report, but for now you'd need to hard-code the release in the report definition.  Regards Jim &#xD;
&#xD;
</description><pubDate>Mon, 22 Sep 2014 15:57:16 -0400</pubDate><a10:updated>2014-09-22T15:57:16-04:00</a10:updated><link>/Support/Forum/spiratest/issues-questions/1010.aspx#reply1842</link></item></channel></rss>