Edgewall Software
Modify

Opened 10 months ago

Closed 3 months ago

#13213 closed enhancement (fixed)

Specify query for text custom fields of format reference

Reported by: Ryan J Ollos Owned by: Ryan J Ollos
Priority: normal Milestone: 1.5.1
Component: general Version:
Severity: normal Keywords:
Cc: Branch:
Release Notes:

The [query] ticketlink_query value can be uniquely specified for each custom field using the ticketlink_query option in the [ticket-custom] section. This applies to all custom field types for which [query] ticketlink_query would be applied, which excludes text (format: plain and wiki), textarea and time fields.

API Changes:
Internal Changes:

Description (last modified by Ryan J Ollos)

Text custom fields with format reference use the ticketlink_query option to generate the query string. It would be nice if this could be specified for each custom field.

For example, I want to show closed tickets and order by the revision custom field, but I don't want to change ticketlink_query because it would affect all other ticket fields:

field1 = text
field1.format = reference
field1.ticketlink_query = ?order=revision

Attachments (1)

customfield_ticketlink_query.py (1.6 KB ) - added by Ryan J Ollos 10 months ago.
Plugin that implements proposed behavior.

Download all attachments as: .zip

Change History (8)

comment:1 by Ryan J Ollos, 10 months ago

Description: modified (diff)

comment:2 by Ryan J Ollos, 10 months ago

The attached plugin implements the proposed behavior. Example:

field1 = text
field1.format = reference
field1.ticketlink_query = ?col=id&col=summary&col=type&col=status&order=status

by Ryan J Ollos, 10 months ago

Plugin that implements proposed behavior.

comment:3 by Ryan J Ollos, 3 months ago

Milestone: 1.5.11.5.3

comment:4 by Ryan J Ollos, 3 months ago

Milestone: 1.5.31.5.1

comment:5 by Ryan J Ollos, 3 months ago

Release Notes: modified (diff)

Documented forthcoming changes in 1.5/TracTicketsCustomFields@2.

comment:6 by Ryan J Ollos, 3 months ago

Proposed changes in [47d680f0e/rjollos.git].

comment:7 by Ryan J Ollos, 3 months ago

Release Notes: modified (diff)
Resolution: fixed
Status: assignedclosed

Committed to trunk in r17337.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Ryan J Ollos.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from Ryan J Ollos to the specified user.

Add Comment


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