Edgewall Software
Modify

Opened 16 years ago

Last modified 9 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
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

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.

thanks

Attachments (0)

Change History (5)

comment:1 by Christian Boos, 16 years ago

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 9 years ago by Ryan J Ollos (previous) (diff)

comment:3 by anonymous, 16 years ago

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 by Ryan Ollos <ryano@…>, 15 years ago

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

comment:5 by Christian Boos, 15 years ago

Milestone: experimentalnext-major-0.1X

Milestone experimental deleted

comment:6 by rikmer, 15 years ago

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
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.