Edgewall Software

Opened 10 years ago

Last modified 3 years ago

#8314 new enhancement

Dynamic Default Values

Reported by: anonymous Owned by:
Priority: low Milestone: next-major-releases
Component: ticket system Version: 0.11-stable
Severity: normal Keywords: default, ticket, dynamic
Release Notes:
API Changes:


In the config file, we have options to provide default values for multiple fields. It appears that these can only be string literals though.

Is it possible, or easy to implement, a dynamic default value.

More specific:

The way I have permissions set-up, there are several groups. Each user belongs to one of these groups, and has no other permissions set.

I want this group to be the default value for a field, so that we can later sort them by what group/company these tickets originated from.


Attachments (0)

Change History (5)

comment:1 Changed 10 years ago by Christian Boos

Component: generalticket system
Milestone: experimental

Somehow related to #4374 and #4549. Though in this case, I'd rather see something like a custom Property and reimplementation of render_selector (see FieldRefactoring#Proposal).

Last edited 3 years ago by Ryan J Ollos (previous) (diff)

comment:3 Changed 10 years ago by anonymous

Well I've hacked together a plug-in to implement this specific request, but a more general (and elegant) solution would be nice for the future.

comment:4 Changed 9 years ago by Ryan Ollos <ryano@…>

I'm a little unclear about the request, but I believe that th:TracTicketChainedFieldsPlugin implements the desired functionality.

comment:5 Changed 9 years ago by Christian Boos

Milestone: experimentalnext-major-0.1X

Milestone experimental deleted

comment:6 Changed 9 years ago by rikmer

I think I looked for a solution for this problem for at least 4 hours now and I cannot find any trac-hack nor anything else how to realise this functionality. TracTicketChainedPlugin doesnt have the functionality to have default field values based on username or group or permission. Please … this feature is needed badly.

@anonymous: Could you provide me with this plugin of yours? I hope its compatible to 0.11.

Modify Ticket

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

Add Comment

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