Edgewall Software
Modify

Opened 18 years ago

Last modified 8 years ago

#4549 new enhancement

[PATCH] Ticket std/custom fields improvements - sql based values, order by, labels, value evals, ...

Reported by: trebor74hr@… Owned by:
Priority: normal Milestone: next-major-releases
Component: ticket system Version: 0.10
Severity: normal Keywords: patch workflow custom fields
Cc: Ryan J Ollos Branch:
Release Notes:
API Changes:
Internal Changes:

Description (last modified by Christian Boos)

Hi,

First to say, I find Trac very useful and programmed nicely (appologies for my English).

Revision 5 is trac 0.10. Ticket fields std/custom improvements:

  • field values (combo) filled with sql
  • customized order of fields
  • std fields - customized label/default values
  • values - evaluation of variables

TRAC.INI with samples:

      std fields
      default_* - default values
      order_*   - order by (not applicable for some fields - e.g. ticket title)
      label_*   - labels
      
      custom fields
      req_who.options   - sql filling the fields
      req_when.value = $(today) - variable evaluation 
      *.order

I plan to implement following - but the question is when :(

  • obligatory/optional/hidden field definition in ini
  • init ticket callback - can change field definition (value, type, order …)
  • save ticket callback - can check/reject/change field values
  • ticket initialization
  • add to ticket/ticket_change "status by user" (like unread ticket, ticket, …) can be used also as internal mail … instead of sending the mail mark ticket/ticket_change to be read by some users
  • customized home page for the user - will show number of unread tickets newly
  • ticket "factory" for periodical tickets - e.g. one ticket generated for every month

It would be nice to have customized statuses, so in the future trac could be some kind of workflow system (add allowed state-transitions/persons). Each status could have extra fields, e.g. if status is "fixed" then field could be revision number.

Hope this will be useful.

Best regards from Croatia, Robert

Attachments (3)

trac-ulr1-061208.diff (8.9 KB ) - added by trebor74hr@… 18 years ago.
trac/ticket/web_ui.py, api.py, trac/web/auth.py
trac.ini (2.2 KB ) - added by trebor74hr@… 18 years ago.
sample part of ini file
TicketFieldOrderer.py (1.5 KB ) - added by Ryan J Ollos 8 years ago.
Plugin to reorder the ticket fields.

Download all attachments as: .zip

Change History (14)

by trebor74hr@…, 18 years ago

Attachment: trac-ulr1-061208.diff added

trac/ticket/web_ui.py, api.py, trac/web/auth.py

by trebor74hr@…, 18 years ago

Attachment: trac.ini added

sample part of ini file

comment:1 by Christian Boos, 18 years ago

Keywords: workflow custom fields added
Milestone: 1.0

Several interesting ideas… worth to be looked at.

#4374 already requested the ability to generate options from SQL queries.

Also, note that several of your "future" ideas are being worked on in the source:sandbox/pycon/workflow branch. You may want to comment on the WorkFlow page or join the discussions on the trac-dev MailingList.

comment:2 by Christian Boos, 18 years ago

See also #2464.

comment:3 by Ryan Ollos <ryano@…>, 15 years ago

Cc: ryano@… added

comment:4 by Christian Boos, 15 years ago

Description: modified (diff)

comment:5 by Christian Boos, 15 years ago

Milestone: 1.0unscheduled

Milestone 1.0 deleted

comment:6 by Christian Boos, 14 years ago

Milestone: triagingnext-major-0.1X

Related to FieldRefactoring.

comment:8 by Ryan J Ollos, 10 years ago

Cc: Ryan J Ollos added; ryano@… removed

comment:9 by Ryan J Ollos, 10 years ago

Owner: Jonas Borgström removed

comment:10 by figaro, 9 years ago

Keywords: patch added

by Ryan J Ollos, 8 years ago

Attachment: TicketFieldOrderer.py added

Plugin to reorder the ticket fields.

comment:11 by Ryan J Ollos, 8 years ago

Ability to order standard ticket fields has been requested in gmessage:trac-users:LemY3ccQLCA/aIfOeiHAAQAJ. I've written a small plugin for re-ordering the ticket fields, see TicketFieldOrderer.py.

in reply to:  11 comment:12 by Ryan J Ollos, 8 years ago

Replying to Ryan J Ollos:

Ability to order standard ticket fields has been requested in gmessage:trac-users:LemY3ccQLCA/aIfOeiHAAQAJ. I've written a small plugin for re-ordering the ticket fields, see TicketFieldOrderer.py.

TracTicketFieldsLayoutPlugin is a better solution, as TicketFieldOrderer.py needs more work (latest version is attached to gmessage:trac-users/LemY3ccQLCA/OO3LKOS0BQAJ).

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The ticket will remain with no owner.
The ticket will be disowned.
as The resolution will be set. Next status will be 'closed'.
The owner will be changed from (none) to anonymous. Next status will be 'assigned'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.