Edgewall Software

Opened 5 years ago

Last modified 4 years ago

#13213 closed enhancement

Specify query for text custom fields of format reference — at Version 5

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 option can be uniquely specified for each custom field using the ticketlink_query option. 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

Change History (6)

comment:1 by Ryan J Ollos, 5 years ago

Description: modified (diff)

comment:2 by Ryan J Ollos, 5 years 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, 5 years ago

Plugin that implements proposed behavior.

comment:3 by Ryan J Ollos, 4 years ago

Milestone: 1.5.11.5.3

comment:4 by Ryan J Ollos, 4 years ago

Milestone: 1.5.31.5.1

comment:5 by Ryan J Ollos, 4 years ago

Release Notes: modified (diff)

Documented forthcoming changes in 1.5/TracTicketsCustomFields@2.

Note: See TracTickets for help on using tickets.