Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-6639

Is it possible to hide archived versions from the project admin page?

      We have quite many versions in several our projects, so the Project Administration page grows bigger and bigger. We can archive the older versions, but it helps only with resolving the issues (the archived versions disappear from the Fix version/Affected lists).

      Is it possible to hide archived versions also from the project admin page?

      thank you,
      Rado

            [JRASERVER-6639] Is it possible to hide archived versions from the project admin page?

            MarkC added a comment -

            Rado,

            This probably not be added out of the box since we need to allow for people to see it as well. I've raised this as an improvement request at JRA-6680 so we can track it there instead.

            Cheers

            Mark C

            MarkC added a comment - Rado, This probably not be added out of the box since we need to allow for people to see it as well. I've raised this as an improvement request at JRA-6680 so we can track it there instead. Cheers Mark C

            hi Keith

            I changed only the project/versions.jsp and it was exactly what we needed. I left manageversions.jsp unchanged because otherwise I couldn't see those versions anymore.
            I attached the versions.jsp file for other people.

            Is there any chance to get this change into regular version?

            thank you for your help

            regards
            Rado

            Rado Balvan added a comment - hi Keith I changed only the project/versions.jsp and it was exactly what we needed. I left manageversions.jsp unchanged because otherwise I couldn't see those versions anymore. I attached the versions.jsp file for other people. Is there any chance to get this change into regular version? thank you for your help regards Rado

            Hi Rado,

            THis is possible buy surrounding the relevant block of code with a statement such as:

            <webwork:if test="./archived == false">
            ...
            </webwork:if>

            • assuming that object on top of the webwork stack is a Version object.

            For example, in the versions table displayed on the main project information screen - it would be necessary to edit:

            ../includes/panels/project/versions.jsp

            From Line20:

            <webwork:iterator value="/versionManager/versions(.)">

            <webwork:if test="./archived == false">
            <tr>
            <td>
            <%@ include file="/includes/versions/versionstatus_size16.jsp" %>
            <%@ include file="/includes/versions/versionname.jsp" %>
            </td>
            <td valign=top align=right size="1%" nowrap>
            <font size="1"><%@ include file="/includes/versions/versionreleasedate.jsp" %></font>
            </td>
            </tr>
            </webwork:if>
            </webwork:iterator>

            This will hide all archived versions. A similar approach can be taken for the version managment screen:

            ../project/views/manageversions.jsp

            at line 49. This file will need further editing as there is further logic here to determine whether to show odering icons, etc.

            Let us know if you need any further information.

            Regards,
            Keith

            Keith Brophy added a comment - Hi Rado, THis is possible buy surrounding the relevant block of code with a statement such as: <webwork:if test="./archived == false"> ... </webwork:if> assuming that object on top of the webwork stack is a Version object. For example, in the versions table displayed on the main project information screen - it would be necessary to edit: ../includes/panels/project/versions.jsp From Line20: <webwork:iterator value="/versionManager/versions(.)"> <webwork:if test="./archived == false"> <tr> <td> <%@ include file="/includes/versions/versionstatus_size16.jsp" %> <%@ include file="/includes/versions/versionname.jsp" %> </td> <td valign=top align=right size="1%" nowrap> <font size="1"><%@ include file="/includes/versions/versionreleasedate.jsp" %></font> </td> </tr> </webwork:if> </webwork:iterator> This will hide all archived versions. A similar approach can be taken for the version managment screen: ../project/views/manageversions.jsp at line 49. This file will need further editing as there is further logic here to determine whether to show odering icons, etc. Let us know if you need any further information. Regards, Keith

              Unassigned Unassigned
              857994c0ea07 Rado Balvan
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: