Changes between Version 70 and Version 71 of TracTickets
- Timestamp:
- Apr 15, 2015, 10:04:51 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
TracTickets
v70 v71 81 81 == Assign-to as Drop-Down List == 82 82 83 If the list of possible ticket owners is finite, you can change the ''assign-to'' ticket field from a text input to a drop-down list. This is done by setting the `restrict_owner` option of the `[ticket]` section in [wiki:TracIni trac.ini] to “true”. In that case, Trac will use the list of all users who have accessed the project to populate the drop-down field.83 If the list of possible ticket owners is finite, you can change the ''assign-to'' ticket field from a text input to a drop-down list. This is done by setting the `restrict_owner` option of the `[ticket]` section in [wiki:TracIni trac.ini] to `true`. In that case, Trac will populate the list with all users who have authenticated with the project and possess the `TICKET_MODIFY` [TracPermissions permissions]. 84 84 85 To appear in the dropdown list, a user needs be registered with the project, ie a user session should exist in the database. Such an entry is automatically created in the database the first time the user submits a change in the project, for example when editing the user's details in the ''Settings'' page, or simply by authenticating if the user has a login. Also, the user must have `TICKET_MODIFY` [TracPermissions permissions]. 85 You may find the dropdown list is //overpopulated// with users that are no longer active in the project. Revoking authentication privileges will not remove the session data that is used to populate the dropdown list. The [wiki:TracAdmin trac-admin] command can be used to list and remove sessions: 86 86 87 You'll find ''overpopulated'' this dropdown list if you have registered previously users than were later removed from the users list, they won't disappear from the sessions list. In order to check this sessions and purge if you need to, you can use the [wiki:TracAdmin trac-admin] suite for this: 88 89 - View all sessions: 90 {{{ 87 - List all sessions: 88 {{{#!sh 91 89 trac-admin /path/to/projenv session list 92 90 }}} 93 91 - Remove a session: 94 {{{ 92 {{{#!sh 95 93 trac-admin /path/to/projenv session delete SID 96 94 }}} 95 96 Alternatively, you can just revoke `TICKET_MODIFY` from users that you don't want to be included in the list. However, that will not be possible if you've granted `TICKET_MODIFY` to all //anonymous// or //authenticated// users. 97 97 98 98 '''Notes:'''