Project

General

Profile

How to close a version

Added by Maxim Krušina almost 16 years ago

When creating a new ticket, there are more and more versions to choose from. Is there some way, how to close a version, so it will be no more available at ticket's list of versions?


Replies (1)

RE: How to close a version - Added by Mischa The Evil almost 16 years ago

This, - in my case - highly-required functionality, is currently not available in the Redmine core. Though there exixts several patches (in two issues [ #1666 and #1676 ]) which were taken from the trunk around revision r1700 if I remember correctly. I think these could/should be rewritten to apply cleanly on release 0.8.0/x. These issues are also quite good discussed.

Here's my personal abstraction1 of the whole grand-issue:


General

There are in general two ways of implementation possible:
  • based on implicit closing of versions based on all issues being closed
    • Patch #1676 only_show_incomplete_target_versions.patch implements this enhancement using this way.
  • explicit closing of versions based on a flag set to the version (needs DB-change)
    • Patch #1666 explicit_version_completion_v2.patch implements this enhancement using this way.

Detailed

What these patches provide:

  • Patch #1676 only_show_incomplete_target_versions.patch
    • limits target versions list to only show incomplete ones in following places:
      • New issue form
      • Edit issue form
      • Issues list - context menu for single issue
      • Bulk edit issues form
  • Patch #1666 explicit_version_completion_v2.patch
    • it requires versions to be manually marked as completed (by adding a new column 'completed' to the DB)
    • it disallows targeting open issues to completed versions in following places:
      • New issue form
      • Edit issue form
      • Issues list - context menu for single issue
      • Bulk edit issues form

I've personally chosen to implement the implicit-closing based patch for my own Redmine instance, which currently still runs an older trunk-export. It workes completely fine...

HTH,

Mischa.

1 taken from my private Redmine instance on which I maintain my private projects...

    (1-1/1)