Edgewall Software

Opened 4 years ago

Closed 4 years ago

#13213 closed enhancement (fixed)

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

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

Change History (8)

comment:1 by Ryan J Ollos, 4 years ago

Description: modified (diff)

comment:2 by Ryan J Ollos, 4 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, 4 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.

comment:6 by Ryan J Ollos, 4 years ago

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

comment:7 by Ryan J Ollos, 4 years ago

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

Committed to trunk in r17337.

Note: See TracTickets for help on using tickets.