Let's now see what configuration options are available in Redmine for issue tracking.
Everything you have read in this chapter so far can actually be disabled for a project with just one click. However, I'm not sure who might need to do this and why... Anyway, just in case you got Redmine with issue tracking disabled by someone else or whatever, let's discuss how Issue tracking can be enabled (or disabled) for a project.
Open the project settings by selecting the Settings tab in the Projects menu. Then select the Modules tab of the Settings page. Make sure that the Issue tracking module is checked, as shown in this screenshot:
If this checkbox is unchecked, issue tracking won't be available for the project.
Remember that we skipped several tabs of the Settings page in the Administration menu in the previous chapter? It's now time to discuss one of them—Issue tracking:
So let's go through the available settings:
If this option is set to Use the issue status, the % Done issue field disappears from the issue edit form, so there will be no way to set the done ratio explicitly. Also, for the automatic done ratio to work, you must configure the done ratios for your issue statuses on the Issue statuses page of the Administration menu, as shown in this screenshot (otherwise, the done ratio will always be empty):
After switching to the automatic done ratio (or updating the done ratios of the issue statuses), you should click on the Update issue done ratios link in the top-right corner of the Issue statuses page to recalculate all done ratios for all issues.
Finally, if the Calculate the issue done ratio with setting is set to Use the issue field (the default value), users will need to specify the done ratio on their own.
To check other settings that are related to issues, we need to go to the Repositories tab of the Settings page in the Administration menu. We will speak about the part of this page which is shown in the following screenshot:
The Referencing keywords setting holds the words that, if found in commit messages before an issue number (#
plus a number), generate a reference for the appropriate issue. In practice, however, you most likely will want to specify an asterisk (*
) here, which means that no special word is required for a reference to be created (only the issue ID is enough). Also, such a reference can be created for several issues at a time. To do this, you need to list these issues in the commit message separated by commas, spaces, or ampersands (&
).
But, what is a reference? Let's check out the issue shown in the following screenshot:
The gray block that you can see under the Associated revisions title contains an issue reference. It was created by an SVN commit command like this (the Fixing keywords field was set to *
, that is, an asterisk):
$ svn commit -m "Fixed that wiki start page can't be changed (#11085)."
An issue can have any number of such references.
Special issue references can also be used to modify the status and/or the done ratio of the issue. As it can be complicated to find suitable universal words for all available trackers, Redmine allows you to specify different Fixing keywords for different trackers for such references. As you might have guessed, this can be done in the table at the bottom of the settings page.
Let's review a sample: say, if Applied status was set to Closed, % Done was set to 100%, and Fixing keywords included closes
, the following SVN command would close the issue and set its done ratio to 100%:
$ svn commit -m "Fixed that wiki start page can't be changed (closes #11085)."
Finally, the Allow issues of all the other projects to be referenced and fixed setting decides whether users will be able to reference and fix issues of projects to which the repository does not belong. This is unlikely to be needed, unless all your projects are highly related.