Modify

Opened 8 years ago

Closed 3 years ago

Last modified 3 years ago

#600 closed enhancement (fixed)

`Show-only` fields, not hide fields?

Reported by: ThurnerRupert Owned by: rjollos
Priority: normal Component: SimpleTicketPlugin
Severity: normal Keywords:
Cc: hasienda, 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 8 years ago by coderanger

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

comment:2 Changed 8 years ago by coderanger

  • Resolution set to invalid
  • Status changed from new to closed

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

comment:3 Changed 8 years ago by ThurnerRupert

  • Resolution invalid deleted
  • Status changed from closed to 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:4 Changed 8 years ago by coderanger

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

comment:5 Changed 7 years ago by ThurnerRupert

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 5 years ago by rjollos

  • Summary changed from show fields, not hide fields? to `Show-only` fields, not hide fields?

I agree that a showonly option would be a nice enhancement.

comment:7 Changed 3 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 3 years ago by rjollos

  • Owner changed from coderanger to rjollos
  • Status changed from reopened to new

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

comment:9 Changed 3 years ago by anonymous

  • Owner changed from rjollos to anonymous
  • Status changed from new to assigned

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 3 years ago by rjollos

  • Owner changed from anonymous to rjollos
  • Status changed from assigned to new

comment:11 Changed 3 years ago by rjollos

  • Resolution set to fixed
  • Status changed from new to 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 3 years ago by rjollos

  • Cc hasienda falkb added

comment:13 Changed 3 years ago by falkb

Excellent :-)

Add Comment

Modify Ticket

Action
as closed .
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from rjollos. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


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

 
Note: See TracTickets for help on using tickets.