Edgewall Software

Ticket #4374 (new enhancement)

Opened 2 years ago

Last modified 19 months ago

Custom Tickets Select Box Auto-generation

Reported by: a.rodger@… Owned by: jonas
Priority: normal Milestone: 2.0
Component: ticket system Version: 0.10.2
Severity: normal Keywords: tickets custom field
Cc:

Description

It would be nice if instead of specifying all the available options for a select box like:

option1|option2|option3...

in trac.ini, which could run into hundreds, if instead you could specify some kind of query so that this list is automatically generated from the database and keeps up to date. For example, if you had 'is associated with customer' as a select box and the customers are generated from a 'Customers' table in the database. e.g. 'select name from Customer where active=1' so that only customers who are still active (assuming this list changes quite often) are shown in the list.

Apologies for the poor example.

At the moment I have written a script that reads trac.ini and modifies this manually but it is far from ideal as it only runs once a day so the data isnt always up-to-date

Attachments

Change History

Changed 22 months ago by cboos

  • milestone set to 2.0

That could be an idea related idea to #2464... The possible values for a field could depend on those of other fields, for example.

However, the interface will necessarily be much more complex in this case (either use XHR, or without javascript, it would be necessary to update the page after a change, as when adding a filter in custom queries).

For the reason, I'm moving this to 2.0, although the idea is interesting.

Changed 22 months ago by cboos

For a static generation of options (i.e. a list which wouldn't change depending on the other selected fields like the alternative I discussed in comment:1), see #4549.

Changed 19 months ago by cboos

  • keywords tickets field added; tickets, removed

Add/Change #4374 (Custom Tickets Select Box Auto-generation)

Author



Change Properties
<Author field>
Action
as new
as The resolution will be set. Next status will be 'closed'
to The owner will change from jonas. Next status will be 'new'
The owner will change from jonas to anonymous. Next status will be 'assigned'
 
Note: See TracTickets for help on using tickets.