Modify

Opened 18 years ago

Closed 12 years ago

Last modified 12 years ago

#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 Noah Kantrowitz

Have you looked at Trac's existing custom field system?

comment:2 Changed 18 years ago by Noah Kantrowitz

Resolution: invalid
Status: newclosed

Without more information as to how this would differ from the existing custom fields system, I am closing this.

comment:3 Changed 17 years ago by rupert thurner

Resolution: invalid
Status: closedreopened

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:4 Changed 17 years ago by Noah Kantrowitz

I still don't see how that differs from Trac's custom fields.

comment:5 Changed 17 years ago by rupert thurner

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 Ryan J Ollos

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 12 years ago by falkb

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 12 years ago by Ryan J Ollos

Owner: changed from Noah Kantrowitz to Ryan J Ollos
Status: reopenednew

Sounds like a good feature. I'll go ahead and implement.

comment:9 Changed 12 years ago by anonymous

Owner: changed from Ryan J Ollos to anonymous
Status: newassigned

Updated wiki page for forthcoming options. Please follow-up if you have a chance to test and can report back.

/wiki/SimpleTicketPlugin?action=diff&version=12

comment:10 Changed 12 years ago by Ryan J Ollos

Owner: changed from anonymous to Ryan J Ollos
Status: assignednew

comment:11 Changed 12 years ago by Ryan J Ollos

Resolution: fixed
Status: newclosed

(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 12 years ago by Ryan J Ollos

Cc: Steffen Hoffmann falkb added; anonymous removed

comment:13 Changed 12 years ago by falkb

Excellent :-)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.