How can I create a report which will display a defect "view issue" or "view issue in new window" link?

0 Likes

Problem:

How can I create a report which will display a defect "view issue" or "view issue in new window" link?

Resolution:

ANSWER
----------------------------------
When viewing data from a report created using the report builder the "view issue" or "view issue in new window" Defect ID link / icons are not included by default, e.g.:


To add Defect ID link / icons:

  • Go to the "PROPERTIES" tab
  • "EDIT" the report
  • Choose "Advanced Query"
  • Remove the alias from the column DefectID (i.e. "Defect#") and add the r.ProjectID field.


Original query:

SELECT r.DefectID "Defect Number:", r.Custom1 "Engineer:" FROMIM_V_Defects r WHERE r.IssueID_pk IN (SELECT DISTINCT issues.IssueID_pk asid FROM IM_V_Defects issues WITH (NOLOCK) WHERE issues.ProjectID = 1 ANDissues.DefectID> ${issueProp_DefectID_0|3000|issueProp_DefectID}) ORDER BYr.DefectID ASC , r.Custom1 ASC



Query after amendment:

SELECT r.DefectID, r.ProjectID, r.Custom1 "Engineer:" FROM IM_V_Defectsr WHERE r.IssueID_pk IN (SELECT DISTINCT issues.IssueID_pk as id FROMIM_V_Defects issues WITH (NOLOCK) WHERE issues.ProjectID = 1 ANDissues.DefectID> ${issueProp_DefectID_0|3000|issueProp_DefectID}) ORDER BYr.DefectID ASC , r.Custom1 ASC



Please note that the alias ("Defect Number:") has been removed from the query and the column (r.ProjectID) has been added. The result of these amendments is that the defect can now be directly accessed from the report by selecting the icons to the left of the Defect ID, e.g.:


This behavior will be included by default in future versions.

Old KB# 23722
Comment List
Related
Recommended