| Line 191... |
Line 191... |
| 191 |
Dim repNum
|
191 |
Dim repNum
|
| 192 |
%> <!-- REPORTS LIST -------------------------------------------------------->
|
192 |
%> <!-- REPORTS LIST -------------------------------------------------------->
|
| 193 |
<%Select Case SSgroup%>
|
193 |
<%Select Case SSgroup%>
|
| 194 |
<%Case "Advanced_Search"%>
|
194 |
<%Case "Advanced_Search"%>
|
| 195 |
<%repNum = 1%>
|
195 |
<%repNum = 1%>
|
| 196 |
<strong>Find ClearQuest Bugs / Issues Location</strong><br>
|
196 |
<strong>Find Jira / ClearQuest Bugs / Issues Location</strong><br>
|
| 197 |
Use this advance search to locate bugs / issues imported to Release Manager from ClearQuest.<br>
|
197 |
Use this advance search to locate bugs / issues imported to Release Manager from Jira or ClearQuest.<br>
|
| 198 |
<a href="rep_where_are_bugs_located.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
198 |
<a href="rep_where_are_bugs_located.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
| 199 |
<%repNum = 2%>
|
199 |
<%repNum = 2%>
|
| 200 |
<strong>Find Packages Using "Ignore Warnings" feature</strong><br>
|
200 |
<strong>Find Packages Using "Ignore Warnings" feature</strong><br>
|
| 201 |
Lists packages which use "Ignore Warning" feature on their dependencies.<br>
|
201 |
Lists packages which use "Ignore Warning" feature on their dependencies.<br>
|
| 202 |
<a href="rep_packages_using_ignore_feature.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
202 |
<a href="rep_packages_using_ignore_feature.asp?repnum=<%=repNum%>&group=<%=SSgroup%>" class="txt_linked">more...</a><br><br><hr size="1" noshade color="#DAD7C8">
|
| Line 787... |
Line 787... |
| 787 |
' Report Name : Find ClearQuest Bugs / Issues Location
|
787 |
' Report Name : Find ClearQuest Bugs / Issues Location
|
| 788 |
' Description : Locates bugs / issues imported from ClearQuest
|
788 |
' Description : Locates bugs / issues imported from ClearQuest
|
| 789 |
' Form Input : CQ issue Database, CQ issue number list space separated
|
789 |
' Form Input : CQ issue Database, CQ issue number list space separated
|
| 790 |
'==================================================================================
|
790 |
'==================================================================================
|
| 791 |
Sub Where_Are_Bugs_Located ( SSsection, NNiss_db, SSiss_num_list )
|
791 |
Sub Where_Are_Bugs_Located ( SSsection, NNiss_db, SSiss_num_list )
|
| 792 |
Dim Query_String, rsRep
|
- |
|
| 793 |
|
792 |
|
| 794 |
If SSsection = "TITLE" Then
|
793 |
If SSsection = "TITLE" Then
|
| 795 |
Response.write "Find ClearQuest Bugs / Issues Location"
|
794 |
Response.write "Find Jira or ClearQuest Bugs / Issues Location"
|
| 796 |
Exit Sub
|
795 |
Exit Sub
|
| 797 |
End If
|
796 |
End If
|
| 798 |
|
797 |
|
| 799 |
|
- |
|
| 800 |
If SSsection = "FORM" Then
|
798 |
If SSsection = "FORM" Then
|
| 801 |
%>
|
799 |
%>
|
| 802 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
800 |
<table width="100%" border="0" cellpadding="2" cellspacing="1">
|
| 803 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRiss_num_list','Issue Number','R');return document.MM_returnValue">
|
801 |
<form action="<%=scriptName%>" method="post" name="repform" onSubmit="MM_validateForm('FRiss_num_list','Issue Number','R');return document.MM_returnValue">
|
| 804 |
<tr>
|
802 |
<tr>
|
| 805 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
803 |
<td width="1%" nowrap class="form_field"><img src="images/spacer.gif" width="30" height="8"></td>
|
| 806 |
<td width="1%" align="right" nowrap class="form_field" valign="top">ClearQuest Database</td>
|
804 |
<td width="1%" align="right" nowrap class="form_field" valign="top">Issue System</td>
|
| 807 |
<td width="100%">
|
805 |
<td width="100%">
|
| 808 |
<select name="FRiss_db" class="form_item">
|
806 |
<select name="FRiss_db" class="form_item">
|
| 809 |
<option value="<%=enumCLEARQUEST_DEVI_ID%>" <%If CDbl(NNiss_db) = enumCLEARQUEST_DEVI_ID Then%>selected<%End If%>>DEVI</option>
|
807 |
<option value="<%=enumCLEARQUEST_DEVI_ID%>" <%If CDbl(NNiss_db) = enumCLEARQUEST_DEVI_ID Then%>selected<%End If%>>ClearQuest DEVI</option>
|
| - |
|
808 |
<option value="<%=enumJIRA_DEVI_ID%>" <%If CDbl(NNiss_db) = enumJIRA_DEVI_ID Then%>selected<%End If%>>Jira</option>
|
| 810 |
</select>
|
809 |
</select>
|
| 811 |
</td>
|
810 |
</td>
|
| 812 |
</tr>
|
811 |
</tr>
|
| 813 |
<tr>
|
812 |
<tr>
|
| 814 |
<td nowrap class="form_field"> </td>
|
813 |
<td nowrap class="form_field"> </td>
|
| Line 835... |
Line 834... |
| 835 |
|
834 |
|
| 836 |
|
835 |
|
| 837 |
If SSsection = "BODY" Then
|
836 |
If SSsection = "BODY" Then
|
| 838 |
If NOT CBool(Request("action")) Then Exit Sub
|
837 |
If NOT CBool(Request("action")) Then Exit Sub
|
| 839 |
|
838 |
|
| 840 |
Dim SSsql, issARR, num_item, iss_num_col, issNumDict, rsCQ, recCount, maxRecCount
|
- |
|
| 841 |
Set issNumDict = CreateObject("Scripting.Dictionary")
|
- |
|
| 842 |
|
- |
|
| 843 |
'---- Find Issue numbers in ClearQuest ----
|
- |
|
| 844 |
If CDbl(NNiss_db) = enumCLEARQUEST_DEVI_ID Then
|
839 |
If CDbl(NNiss_db) = enumCLEARQUEST_DEVI_ID Then
|
| 845 |
iss_num_col = "new_num"
|
- |
|
| 846 |
SSsql = _
|
- |
|
| 847 |
" SELECT si.dbid AS iss_id, si."& iss_num_col &" AS iss_num"&_
|
- |
|
| 848 |
" FROM release_manager.cq_software_issue si"&_
|
- |
|
| 849 |
" WHERE "
|
- |
|
| 850 |
End If
|
- |
|
| 851 |
|
- |
|
| 852 |
|
- |
|
| 853 |
'---- Split multiple search ----
|
- |
|
| 854 |
SSiss_num_list = Trim(SSiss_num_list)
|
- |
|
| 855 |
If InStr( SSiss_num_list, " " ) > 0 Then
|
- |
|
| 856 |
' space separator found
|
- |
|
| 857 |
issARR = Split ( SSiss_num_list, " ")
|
- |
|
| 858 |
|
- |
|
| 859 |
For Each num_item In issARR
|
- |
|
| 860 |
If num_item <> "" Then
|
- |
|
| 861 |
SSsql = SSsql & " (si."& iss_num_col &" LIKE '%"& Replace( SQLstring(num_item), "*", "%" ) &"%') OR"
|
- |
|
| 862 |
End If
|
- |
|
| 863 |
Next
|
- |
|
| 864 |
|
- |
|
| 865 |
SSsql = Left ( SSsql, Len(SSsql) - 2 ) ' Removes last OR
|
- |
|
| 866 |
|
- |
|
| 867 |
Else
|
- |
|
| 868 |
SSsql = SSsql & " (si."& iss_num_col &" LIKE '%"& Replace( SQLstring(SSiss_num_list), "*", "%") &"%')"
|
- |
|
| 869 |
|
- |
|
| 870 |
End If
|
- |
|
| 871 |
|
- |
|
| 872 |
Set rsCQ = OraDatabase.DbCreateDynaset( SSsql, cint(0))
|
- |
|
| 873 |
|
- |
|
| 874 |
' Get find results from CQ
|
- |
|
| 875 |
recCount = 1
|
- |
|
| 876 |
maxRecCount = 1000
|
- |
|
| 877 |
issNumDict.ADD "-1", "-1" ' take care of no results
|
- |
|
| 878 |
While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF) AND (recCount < maxRecCount))
|
- |
|
| 879 |
issNumDict.ADD Cstr(rsCQ("iss_id")), Cstr(rsCQ("iss_num"))
|
840 |
Call Where_Are_Bugs_Located_ClearQuest( SSsection, NNiss_db, SSiss_num_list)
|
| 880 |
recCount = recCount + 1
|
- |
|
| 881 |
rsCQ.MoveNext
|
- |
|
| 882 |
WEnd
|
- |
|
| 883 |
|
- |
|
| 884 |
rsCQ.Close
|
- |
|
| 885 |
Set rsCQ = nothing
|
- |
|
| 886 |
|
- |
|
| 887 |
Query_String = ReadFile( rootPath & "queries\rep_where_are_bugs_located.sql" )
|
- |
|
| 888 |
Query_String = Replace ( Query_String, "/*ISS_DB*/", NNiss_db )
|
- |
|
| 889 |
Query_String = Replace ( Query_String, "/*ISS_ID_LIST*/", Join( issNumDict.Keys, ",") )
|
- |
|
| 890 |
|
- |
|
| 891 |
%>
|
- |
|
| 892 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
- |
|
| 893 |
<tr>
|
- |
|
| 894 |
<td width="1%" nowrap class="body_colb">Issue Number </td>
|
- |
|
| 895 |
<td width="1%" nowrap class="body_colb">Fixed</td>
|
- |
|
| 896 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
- |
|
| 897 |
<td width="1%" nowrap class="body_colb">Notes </td>
|
- |
|
| 898 |
<td width="100%" nowrap class="body_colb"> </td>
|
- |
|
| 899 |
</tr>
|
- |
|
| 900 |
<tr>
|
- |
|
| 901 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
- |
|
| 902 |
</tr>
|
- |
|
| 903 |
<%
|
- |
|
| 904 |
Dim currIss_id
|
- |
|
| 905 |
currIss_id = -1
|
- |
|
| 906 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
- |
|
| 907 |
|
- |
|
| 908 |
If rsRep.RecordCount = 0 Then
|
- |
|
| 909 |
With Response
|
- |
|
| 910 |
.write "<tr>"
|
- |
|
| 911 |
.write "<td colspan='5' class='body_row'>Found 0 records</td>"
|
- |
|
| 912 |
.write "</tr>"
|
- |
|
| 913 |
End With
|
- |
|
| 914 |
End If
|
- |
|
| 915 |
|
- |
|
| 916 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
- |
|
| 917 |
' -------- GROUP BY ISS_ID -----------------
|
- |
|
| 918 |
If Cstr(currIss_id) <> Cstr(rsRep("iss_id")) Then
|
841 |
ElseIf CDbl(NNiss_db) = enumJIRA_DEVI_ID Then
|
| 919 |
%>
|
- |
|
| 920 |
<tr>
|
- |
|
| 921 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
- |
|
| 922 |
<td></td>
|
- |
|
| 923 |
</tr>
|
- |
|
| 924 |
<tr>
|
- |
|
| 925 |
<td nowrap><a href="_wform_issues_details.asp?iss_db=<%=NNiss_db%>&iss_id=<%= rsRep("iss_id")%>" class="body_scol vixIframeDialog"><img src="images/i_drill_down.gif" width="12" height="14" hspace="3" border="0" align="absmiddle" alt="See issue details."><%=issNumDict.Item ( Cstr ( rsRep("iss_id") ) )%></a></td>
|
842 |
Call Where_Are_Bugs_Located_Jira (SSsection, NNiss_db, SSiss_num_list)
|
| 926 |
<td colspan='5' class="body_scol"></td>
|
- |
|
| 927 |
</tr>
|
- |
|
| 928 |
<%
|
- |
|
| 929 |
currIss_id = Cstr(rsRep("iss_id"))
|
- |
|
| 930 |
End If
|
843 |
End If
|
| 931 |
' -------- END GROUP ------------------------
|
- |
|
| 932 |
%>
|
- |
|
| 933 |
<tr>
|
- |
|
| 934 |
<td nowrap class="body_row" valign="top"></td>
|
- |
|
| 935 |
<%If CDbl(rsRep("iss_state")) = enumISSUES_STATE_FIXED Then%>
|
- |
|
| 936 |
<td align="left"><img src="images/i_tick.gif" width="7" height="7" hspace="6"></td>
|
- |
|
| 937 |
<%Else%>
|
- |
|
| 938 |
<td align="left"><img src='images/spacer.gif' width='7' height='7' hspace='6'></td>
|
- |
|
| 939 |
<%End If%>
|
- |
|
| 940 |
<td nowrap align="left" class="body_row" valign="top"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%><img src="images/i_drill_down.gif" width="12" height="14" hspace="3" border="0" align="absmiddle" alt="Find this package."></td>
|
- |
|
| 941 |
<%
|
- |
|
| 942 |
Set rsQry = OraDatabase.DbCreateDynaset( "select * from release_content rc, release_tags rt where rc.rtag_id = rt.rtag_id and "&_
|
- |
|
| 943 |
" pv_id ="&rsRep("pv_id"), 0 )
|
- |
|
| 944 |
|
- |
|
| 945 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
|
- |
|
| 946 |
%>
|
- |
|
| 947 |
<tr>
|
- |
|
| 948 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
- |
|
| 949 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
- |
|
| 950 |
<td nowrap align="left" class="body_row" valign="top"><a href="fixed_issues.asp?rtag_id=<%=rsQry("rtag_id")%>&pv_id=<%=rsQry("pv_id")%>" class="txt_linked" target="_blank"><%=rsQry("rtag_name")%></a></td>
|
- |
|
| 951 |
</tr>
|
- |
|
| 952 |
<%
|
- |
|
| 953 |
rsQry.MoveNext()
|
- |
|
| 954 |
WEnd
|
- |
|
| 955 |
rsQry.Close()
|
- |
|
| 956 |
Set rsQry = Nothing
|
- |
|
| 957 |
%>
|
- |
|
| 958 |
<td nowrap align="left" class="body_row" valign="top"><%=rsRep("notes")%></td>
|
- |
|
| 959 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
- |
|
| 960 |
</tr>
|
- |
|
| 961 |
<% rsRep.MoveNext
|
- |
|
| 962 |
WEnd
|
- |
|
| 963 |
%>
|
844 |
%>
|
| 964 |
<tr>
|
- |
|
| 965 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
- |
|
| 966 |
</tr>
|
- |
|
| 967 |
</table>
|
- |
|
| 968 |
<!-- PRINT, SAVE, ETC. ------------>
|
845 |
<!-- PRINT, SAVE, ETC. ------------>
|
| 969 |
<%If parPrint = "" Then%>
|
846 |
<%If parPrint = "" Then%>
|
| 970 |
<br>
|
847 |
<br>
|
| 971 |
<br>
|
848 |
<br>
|
| 972 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
849 |
<a href="javascript:;" onClick="window.print();" class="txt_linked"><img src="images/btn_print.gif" width="23" height="24" hspace="4" border="0" align="absmiddle">Print this report</a><br>
|
| 973 |
<br>
|
850 |
<br>
|
| 974 |
<%End If%>
|
851 |
<%End If%>
|
| 975 |
<!-- PRINT, SAVE, ETC. END -------->
|
852 |
<!-- PRINT, SAVE, ETC. END -------->
|
| 976 |
<%
|
853 |
<%
|
| 977 |
rsRep.Close
|
- |
|
| 978 |
Set rsRep = nothing
|
- |
|
| 979 |
End If
|
854 |
End If
|
| 980 |
|
855 |
|
| 981 |
End Sub
|
856 |
End Sub
|
| - |
|
857 |
|
| - |
|
858 |
Sub Where_Are_Bugs_Located_Jira ( SSsection, NNiss_db, SSiss_num_list )
|
| - |
|
859 |
Dim Query_String, rsRep
|
| - |
|
860 |
Dim SSsql, issARR, num_item, issNumDict, rsCQ, recCount, maxRecCount
|
| - |
|
861 |
Set issNumDict = CreateObject("Scripting.Dictionary")
|
| - |
|
862 |
|
| - |
|
863 |
'---- Find Issue numbers in JIRA ----
|
| - |
|
864 |
SSsql = _
|
| - |
|
865 |
" select distinct ISS_KEY"&_
|
| - |
|
866 |
" FROM release_manager.JIRA_ISSUES"&_
|
| - |
|
867 |
" WHERE "
|
| - |
|
868 |
|
| - |
|
869 |
'---- Split multiple search ----
|
| - |
|
870 |
SSiss_num_list = Trim(SSiss_num_list)
|
| - |
|
871 |
If InStr( SSiss_num_list, " " ) > 0 Then
|
| - |
|
872 |
' space separator found
|
| - |
|
873 |
issARR = Split ( SSiss_num_list, " ")
|
| - |
|
874 |
|
| - |
|
875 |
For Each num_item In issARR
|
| - |
|
876 |
If num_item <> "" Then
|
| - |
|
877 |
SSsql = SSsql & " ISS_KEY LIKE ('%"& Replace( SQLstring(num_item), "*", "%" ) & "') OR"
|
| - |
|
878 |
End If
|
| - |
|
879 |
Next
|
| - |
|
880 |
|
| - |
|
881 |
SSsql = Left ( SSsql, Len(SSsql) - 2 ) ' Removes last OR
|
| - |
|
882 |
|
| - |
|
883 |
Else
|
| - |
|
884 |
SSsql = SSsql & " ISS_KEY LIKE ('%"& Replace( SQLstring(SSiss_num_list), "*", "%") &"')"
|
| - |
|
885 |
|
| - |
|
886 |
End If
|
| - |
|
887 |
|
| - |
|
888 |
Set rsCQ = OraDatabase.DbCreateDynaset( SSsql, cint(0))
|
| - |
|
889 |
|
| - |
|
890 |
' Get find results from CQ
|
| - |
|
891 |
recCount = 1
|
| - |
|
892 |
maxRecCount = 1000
|
| - |
|
893 |
issNumDict.ADD "'-1'", "-1" ' take care of no results
|
| - |
|
894 |
While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF) AND (recCount < maxRecCount))
|
| - |
|
895 |
issNumDict.ADD "'" & Cstr(rsCQ("ISS_KEY")) & "'", "1"
|
| - |
|
896 |
recCount = recCount + 1
|
| - |
|
897 |
rsCQ.MoveNext
|
| - |
|
898 |
WEnd
|
| - |
|
899 |
|
| - |
|
900 |
rsCQ.Close
|
| - |
|
901 |
Set rsCQ = nothing
|
| - |
|
902 |
|
| - |
|
903 |
Query_String = ReadFile( rootPath & "queries\rep_where_are_jirabugs_located.sql" )
|
| - |
|
904 |
Query_String = Replace ( Query_String, "/*ISS_ID_LIST*/", Join( issNumDict.Keys, ",") )
|
| - |
|
905 |
|
| - |
|
906 |
%>
|
| - |
|
907 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
| - |
|
908 |
<tr>
|
| - |
|
909 |
<td width="1%" nowrap class="body_colb">Issue Number </td>
|
| - |
|
910 |
<td width="1%" nowrap class="body_colb">Fixed</td>
|
| - |
|
911 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
| - |
|
912 |
<td width="1%" nowrap class="body_colb">Notes </td>
|
| - |
|
913 |
<td width="100%" nowrap class="body_colb"> </td>
|
| - |
|
914 |
</tr>
|
| - |
|
915 |
<tr>
|
| - |
|
916 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| - |
|
917 |
</tr>
|
| - |
|
918 |
<%
|
| - |
|
919 |
Dim currIss_id
|
| - |
|
920 |
currIss_id = -1
|
| - |
|
921 |
|
| - |
|
922 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
| - |
|
923 |
If rsRep.RecordCount = 0 Then
|
| - |
|
924 |
With Response
|
| - |
|
925 |
.write "<tr>"
|
| - |
|
926 |
.write "<td colspan='5' class='body_row'>Found 0 records</td>"
|
| - |
|
927 |
.write "</tr>"
|
| - |
|
928 |
End With
|
| - |
|
929 |
End If
|
| - |
|
930 |
|
| - |
|
931 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
| - |
|
932 |
' -------- GROUP BY ISS_KEY -----------------
|
| - |
|
933 |
If Cstr(currIss_id) <> Cstr(rsRep("iss_key")) Then
|
| - |
|
934 |
%>
|
| - |
|
935 |
<tr>
|
| - |
|
936 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| - |
|
937 |
<td></td>
|
| - |
|
938 |
</tr>
|
| - |
|
939 |
<tr>
|
| - |
|
940 |
<td nowrap><a href="_wform_issues_details.asp?iss_db=<%=NNiss_db%>&iss_key=<%= rsRep("iss_key")%>" class="body_scol vixIframeDialog"><img src="images/i_drill_down.gif" width="12" height="14" hspace="3" border="0" align="absmiddle" title="See issue details."><%=rsRep("iss_key")%></a></td>
|
| - |
|
941 |
<td colspan='5' class="body_scol"></td>
|
| - |
|
942 |
</tr>
|
| - |
|
943 |
<%
|
| - |
|
944 |
currIss_id = Cstr(rsRep("iss_key"))
|
| - |
|
945 |
End If
|
| - |
|
946 |
' -------- END GROUP ------------------------
|
| - |
|
947 |
%>
|
| - |
|
948 |
<tr>
|
| - |
|
949 |
<td nowrap class="body_row" valign="top"></td>
|
| - |
|
950 |
<td align="left"><img src='images/spacer.gif' width='7' height='7' hspace='6'></td>
|
| - |
|
951 |
<td nowrap align="left" class="body_row" valign="top"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%><img src="images/i_drill_down.gif" width="12" height="14" hspace="3" border="0" align="absmiddle" title="Find this package."></td>
|
| - |
|
952 |
<%
|
| - |
|
953 |
Set rsQry = OraDatabase.DbCreateDynaset( "select * from release_content rc, release_tags rt where rc.rtag_id = rt.rtag_id and "&_
|
| - |
|
954 |
" pv_id ="&rsRep("pv_id"), 0 )
|
| - |
|
955 |
|
| - |
|
956 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
|
| - |
|
957 |
%>
|
| - |
|
958 |
<tr>
|
| - |
|
959 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
| - |
|
960 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
| - |
|
961 |
<td nowrap align="left" class="body_row" valign="top"><a href="fixed_issues.asp?rtag_id=<%=rsQry("rtag_id")%>&pv_id=<%=rsQry("pv_id")%>" class="txt_linked" target="_blank"><%=rsQry("rtag_name")%></a></td>
|
| - |
|
962 |
</tr>
|
| - |
|
963 |
<%
|
| - |
|
964 |
rsQry.MoveNext()
|
| - |
|
965 |
WEnd
|
| - |
|
966 |
rsQry.Close()
|
| - |
|
967 |
Set rsQry = Nothing
|
| - |
|
968 |
%>
|
| - |
|
969 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
| - |
|
970 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
| - |
|
971 |
</tr>
|
| - |
|
972 |
<% rsRep.MoveNext
|
| - |
|
973 |
WEnd
|
| - |
|
974 |
%>
|
| - |
|
975 |
<tr>
|
| - |
|
976 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| - |
|
977 |
</tr>
|
| - |
|
978 |
</table>
|
| - |
|
979 |
<%
|
| - |
|
980 |
rsRep.Close
|
| - |
|
981 |
Set rsRep = nothing
|
| - |
|
982 |
End Sub
|
| - |
|
983 |
|
| - |
|
984 |
Sub Where_Are_Bugs_Located_ClearQuest ( SSsection, NNiss_db, SSiss_num_list )
|
| - |
|
985 |
Dim Query_String, rsRep
|
| - |
|
986 |
Dim SSsql, issARR, num_item, iss_num_col, issNumDict, rsCQ, recCount, maxRecCount
|
| - |
|
987 |
Set issNumDict = CreateObject("Scripting.Dictionary")
|
| - |
|
988 |
|
| - |
|
989 |
'---- Find Issue numbers in ClearQuest ----
|
| - |
|
990 |
iss_num_col = "new_num"
|
| - |
|
991 |
SSsql = _
|
| - |
|
992 |
" SELECT si.dbid AS iss_id, si."& iss_num_col &" AS iss_num"&_
|
| - |
|
993 |
" FROM release_manager.cq_software_issue si"&_
|
| - |
|
994 |
" WHERE "
|
| - |
|
995 |
|
| - |
|
996 |
'---- Split multiple search ----
|
| - |
|
997 |
SSiss_num_list = Trim(SSiss_num_list)
|
| - |
|
998 |
If InStr( SSiss_num_list, " " ) > 0 Then
|
| - |
|
999 |
' space separator found
|
| - |
|
1000 |
issARR = Split ( SSiss_num_list, " ")
|
| - |
|
1001 |
|
| - |
|
1002 |
For Each num_item In issARR
|
| - |
|
1003 |
If num_item <> "" Then
|
| - |
|
1004 |
SSsql = SSsql & " (si."& iss_num_col &" LIKE '%"& Replace( SQLstring(num_item), "*", "%" ) &"%') OR"
|
| - |
|
1005 |
End If
|
| - |
|
1006 |
Next
|
| - |
|
1007 |
|
| - |
|
1008 |
SSsql = Left ( SSsql, Len(SSsql) - 2 ) ' Removes last OR
|
| - |
|
1009 |
|
| - |
|
1010 |
Else
|
| - |
|
1011 |
SSsql = SSsql & " (si."& iss_num_col &" LIKE '%"& Replace( SQLstring(SSiss_num_list), "*", "%") &"%')"
|
| - |
|
1012 |
|
| - |
|
1013 |
End If
|
| - |
|
1014 |
Set rsCQ = OraDatabase.DbCreateDynaset( SSsql, cint(0))
|
| - |
|
1015 |
|
| - |
|
1016 |
' Get find results from CQ
|
| - |
|
1017 |
recCount = 1
|
| - |
|
1018 |
maxRecCount = 1000
|
| - |
|
1019 |
issNumDict.ADD "-1", "-1" ' take care of no results
|
| - |
|
1020 |
While ((NOT rsCQ.BOF) AND (NOT rsCQ.EOF) AND (recCount < maxRecCount))
|
| - |
|
1021 |
issNumDict.ADD Cstr(rsCQ("iss_id")), Cstr(rsCQ("iss_num"))
|
| - |
|
1022 |
recCount = recCount + 1
|
| - |
|
1023 |
rsCQ.MoveNext
|
| - |
|
1024 |
WEnd
|
| - |
|
1025 |
|
| - |
|
1026 |
rsCQ.Close
|
| - |
|
1027 |
Set rsCQ = nothing
|
| - |
|
1028 |
|
| - |
|
1029 |
Query_String = ReadFile( rootPath & "queries\rep_where_are_bugs_located.sql" )
|
| - |
|
1030 |
Query_String = Replace ( Query_String, "/*ISS_DB*/", NNiss_db )
|
| - |
|
1031 |
Query_String = Replace ( Query_String, "/*ISS_ID_LIST*/", Join( issNumDict.Keys, ",") )
|
| - |
|
1032 |
|
| - |
|
1033 |
%>
|
| - |
|
1034 |
<table width="100%" border="0" cellspacing="0" cellpadding="2">
|
| - |
|
1035 |
<tr>
|
| - |
|
1036 |
<td width="1%" nowrap class="body_colb">Issue Number </td>
|
| - |
|
1037 |
<td width="1%" nowrap class="body_colb">Fixed</td>
|
| - |
|
1038 |
<td width="1%" nowrap class="body_colb">Package Name and Version </td>
|
| - |
|
1039 |
<td width="1%" nowrap class="body_colb">Notes </td>
|
| - |
|
1040 |
<td width="100%" nowrap class="body_colb"> </td>
|
| - |
|
1041 |
</tr>
|
| - |
|
1042 |
<tr>
|
| - |
|
1043 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| - |
|
1044 |
</tr>
|
| - |
|
1045 |
<%
|
| - |
|
1046 |
Dim currIss_id
|
| - |
|
1047 |
currIss_id = -1
|
| - |
|
1048 |
Set rsRep = OraDatabase.DbCreateDynaset( Query_String, 0 )
|
| - |
|
1049 |
|
| - |
|
1050 |
If rsRep.RecordCount = 0 Then
|
| - |
|
1051 |
With Response
|
| - |
|
1052 |
.write "<tr>"
|
| - |
|
1053 |
.write "<td colspan='5' class='body_row'>Found 0 records</td>"
|
| - |
|
1054 |
.write "</tr>"
|
| - |
|
1055 |
End With
|
| - |
|
1056 |
End If
|
| - |
|
1057 |
|
| - |
|
1058 |
While ((NOT rsRep.BOF) AND (NOT rsRep.EOF))
|
| - |
|
1059 |
' -------- GROUP BY ISS_ID -----------------
|
| - |
|
1060 |
If Cstr(currIss_id) <> Cstr(rsRep("iss_id")) Then
|
| - |
|
1061 |
%>
|
| - |
|
1062 |
<tr>
|
| - |
|
1063 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| - |
|
1064 |
<td></td>
|
| - |
|
1065 |
</tr>
|
| - |
|
1066 |
<tr>
|
| - |
|
1067 |
<td nowrap><a href="_wform_issues_details.asp?iss_db=<%=NNiss_db%>&iss_id=<%= rsRep("iss_id")%>" class="body_scol vixIframeDialog"><img src="images/i_drill_down.gif" width="12" height="14" hspace="3" border="0" align="absmiddle" title="See issue details."><%=issNumDict.Item ( Cstr ( rsRep("iss_id") ) )%></a></td>
|
| - |
|
1068 |
<td colspan='5' class="body_scol"></td>
|
| - |
|
1069 |
</tr>
|
| - |
|
1070 |
<%
|
| - |
|
1071 |
currIss_id = Cstr(rsRep("iss_id"))
|
| - |
|
1072 |
End If
|
| - |
|
1073 |
' -------- END GROUP ------------------------
|
| - |
|
1074 |
%>
|
| - |
|
1075 |
<tr>
|
| - |
|
1076 |
<td nowrap class="body_row" valign="top"></td>
|
| - |
|
1077 |
<%If CDbl(rsRep("iss_state")) = enumISSUES_STATE_FIXED Then%>
|
| - |
|
1078 |
<td align="left"><img src="images/i_tick.gif" width="7" height="7" hspace="6"></td>
|
| - |
|
1079 |
<%Else%>
|
| - |
|
1080 |
<td align="left"><img src='images/spacer.gif' width='7' height='7' hspace='6'></td>
|
| - |
|
1081 |
<%End If%>
|
| - |
|
1082 |
<td nowrap align="left" class="body_row" valign="top"><%=rsRep("pkg_name") &" "& rsRep("pkg_version")%><img src="images/i_drill_down.gif" width="12" height="14" hspace="3" border="0" align="absmiddle" title="Find this package."></td>
|
| - |
|
1083 |
<%
|
| - |
|
1084 |
Set rsQry = OraDatabase.DbCreateDynaset( "select * from release_content rc, release_tags rt where rc.rtag_id = rt.rtag_id and "&_
|
| - |
|
1085 |
" pv_id ="&rsRep("pv_id"), 0 )
|
| - |
|
1086 |
|
| - |
|
1087 |
While ((NOT rsQry.BOF) AND (NOT rsQry.EOF))
|
| - |
|
1088 |
%>
|
| - |
|
1089 |
<tr>
|
| - |
|
1090 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
| - |
|
1091 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
| - |
|
1092 |
<td nowrap align="left" class="body_row" valign="top"><a href="fixed_issues.asp?rtag_id=<%=rsQry("rtag_id")%>&pv_id=<%=rsQry("pv_id")%>" class="txt_linked" target="_blank"><%=rsQry("rtag_name")%></a></td>
|
| - |
|
1093 |
</tr>
|
| - |
|
1094 |
<%
|
| - |
|
1095 |
rsQry.MoveNext()
|
| - |
|
1096 |
WEnd
|
| - |
|
1097 |
rsQry.Close()
|
| - |
|
1098 |
Set rsQry = Nothing
|
| - |
|
1099 |
%>
|
| - |
|
1100 |
<td nowrap align="left" class="body_row" valign="top"><%=rsRep("notes")%></td>
|
| - |
|
1101 |
<td nowrap align="left" class="body_row" valign="top"></td>
|
| - |
|
1102 |
</tr>
|
| - |
|
1103 |
<% rsRep.MoveNext
|
| - |
|
1104 |
WEnd
|
| - |
|
1105 |
%>
|
| - |
|
1106 |
<tr>
|
| - |
|
1107 |
<td colspan="5" background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| - |
|
1108 |
</tr>
|
| - |
|
1109 |
</table>
|
| - |
|
1110 |
<%
|
| - |
|
1111 |
rsRep.Close
|
| - |
|
1112 |
Set rsRep = nothing
|
| - |
|
1113 |
End Sub
|
| - |
|
1114 |
|
| 982 |
%>
|
1115 |
%>
|
| 983 |
<%
|
1116 |
<%
|
| 984 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
1117 |
'-------------------------------------------------------------------------------------------------------------------------------------------------------------------
|
| 985 |
'==================================================================================
|
1118 |
'==================================================================================
|
| 986 |
' Report Name : Find a Package
|
1119 |
' Report Name : Find a Package
|
| Line 2606... |
Line 2739... |
| 2606 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
2739 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| 2607 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
2740 |
<td background="images/bg_rep_line.gif"><img src="images/spacer.gif" width="1" height="1"></td>
|
| 2608 |
</tr>
|
2741 |
</tr>
|
| 2609 |
<tr>
|
2742 |
<tr>
|
| 2610 |
<td> </td>
|
2743 |
<td> </td>
|
| 2611 |
<td><%If rsRep("dlocked") = "Y" Then%><img src="images/i_locked.gif" width="7" height="10" hspace="2" alt="Officially released."><%Else%><img src="images/spacer.gif" width="7" height="10" hspace="2"><%End If%></td>
|
2744 |
<td><%If rsRep("dlocked") = "Y" Then%><img src="images/i_locked.gif" width="7" height="10" hspace="2" title="Officially released."><%Else%><img src="images/spacer.gif" width="7" height="10" hspace="2"><%End If%></td>
|
| 2612 |
<td nowrap><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=nRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_name")%></strong></a></td>
|
2745 |
<td nowrap><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=nRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_name")%></strong></a></td>
|
| 2613 |
<td nowrap><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=nRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_version")%></strong></a></td>
|
2746 |
<td nowrap><a href="fixed_issues.asp?pv_id=<%=rsRep("pv_id")%>&rtag_id=<%=nRtag_id%>" class="body_txt"><strong><%=rsRep("pkg_version")%></strong></a></td>
|
| 2614 |
<td> </td>
|
2747 |
<td> </td>
|
| 2615 |
<td> </td>
|
2748 |
<td> </td>
|
| 2616 |
<td> </td>
|
2749 |
<td> </td>
|