Edgewall Software
Modify

Opened 10 years ago

Last modified 4 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:

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

comment:3 by anonymous, 10 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@…>, 10 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, 9 years ago

Milestone: experimentalnext-major-0.1X

Milestone experimental deleted

comment:6 by rikmer, 9 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. Next status will be 'new'.
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.