#600 closed enhancement (fixed)
`Show-only` fields, not hide fields?
Reported by: | rupert thurner | Owned by: | Ryan J Ollos |
---|---|---|---|
Priority: | normal | Component: | SimpleTicketPlugin |
Severity: | normal | Keywords: | |
Cc: | Steffen Hoffmann, falkb | Trac Release: | 0.9 |
Description
having custom fields for tickets, i'm wondering if the other way round would also be an option: showing certain fields.
Attachments (0)
Change History (13)
comment:1 Changed 18 years ago by
comment:2 Changed 18 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
Without more information as to how this would differ from the existing custom fields system, I am closing this.
comment:3 Changed 18 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
this would differ in case of:
- upgrades of trac itself, changing fields
- additional custom fields defined for a project
in giving a set of consistent fields, instead of displaying everthing what is there except XYZ.
comment:5 Changed 18 years ago by
we tried to give "end users" a simplified view. if we add a custom field, or install a plugin like the timing&estimation plugin, the additional fields are immediately displayed in the simplified view too. i thought it is more intuitive to specify the displayed fields, so adding fields does not change the look of the simplified view - without specifiying addidtional fields.
comment:6 Changed 15 years ago by
Summary: | show fields, not hide fields? → `Show-only` fields, not hide fields? |
---|
I agree that a showonly
option would be a nice enhancement.
comment:7 Changed 13 years ago by
Likely something like
- data['fields'] = [f for f in data['fields'] if f['name'] not in self.hide_fields] + if self.hide_fields.isEmpty(): + data['fields'] = [f for f in data['fields'] if f['name'] in self.showonly_fields] + else: + data['fields'] = [f for f in data['fields'] if f['name'] not in self.hide_fields]
comment:8 Changed 13 years ago by
Owner: | changed from Noah Kantrowitz to Ryan J Ollos |
---|---|
Status: | reopened → new |
Sounds like a good feature. I'll go ahead and implement.
comment:9 Changed 13 years ago by
Owner: | changed from Ryan J Ollos to anonymous |
---|---|
Status: | new → assigned |
Updated wiki page for forthcoming options. Please follow-up if you have a chance to test and can report back.
comment:10 Changed 13 years ago by
Owner: | changed from anonymous to Ryan J Ollos |
---|---|
Status: | assigned → new |
comment:11 Changed 13 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
(In [10996]) Fixes #600: (Version 4.0b1) Added an option show_only
. When True
, the ticket fields specified in fields
are shown. When False
(the default), the ticket fields specified in fields
are hidden.
Compatibility note: The option hide
has been renamed to fields
. It is otherwise specified the same as previously.
comment:12 Changed 13 years ago by
Cc: | Steffen Hoffmann falkb added; anonymous removed |
---|
Have you looked at Trac's existing custom field system?