Edgewall Software
Modify

Opened 16 years ago

Closed 16 years ago

Last modified 16 years ago

#7891 closed enhancement (worksforme)

TicketQuery macro: reverse ordering option?

Reported by: motumboe@… Owned by:
Priority: low Milestone:
Component: wiki system Version: 0.11
Severity: trivial Keywords:
Cc: Branch:
Release Notes:
API Changes:
Internal Changes:

Description

I wrote this line

[[TicketQuery(format=list,status!=closed,order=id, max=10)]]

to have the open tickets in a wiki page. Here is its output:

#1
Add a new project summary module.
#31
Bug dependencies/relations feature
#38
Wiki edit event collapsing
#53
plugin infrastructure for rendering diff HTML previews
#65
Purge old versions of wiki pages
#108
OrphanedPages macro
#109
MissingLinks, an index over missing wiki pages
#150
User-centric storage. Last-viewed information and 'intelligent' followup
#217
XML-RPC/SOAP/etc. interface
#221
Creating TR for multiple components

Actually, I would like to show the most recent tickets instead of the oldest ones. I'd like to have a chance to choose it, with say order=reverseid or better asc=0 / asc=1. Sorry if this has been already implemented.

Attachments (0)

Change History (2)

comment:1 by osimons, 16 years ago

Resolution: worksforme
Status: newclosed

Have you actually read the WikiMacros documentation? Under [[TicketQuery]] it says that it supports both order and desc. Recent 0.11.x additionally supports created and modified fields.

Closing.

comment:2 by anonymous, 16 years ago

Excerpt from my local 0.11 WikiMacros file:

The max parameter can be used to limit the number of tickets shown (defaults to 0, i.e. no maximum).

The order parameter sets the field used for ordering tickets (defaults to id).

The group parameter sets the field used for grouping tickets (defaults to not being set).

The groupdesc parameter indicates whether the natural display order of the groups should be reversed (defaults to false).

In fact, my installation supports the desc parameter but it is not document. Great thing it is already implemented! Cheers

Marco

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The ticket will remain with no owner.
The resolution will be deleted. Next status will be 'reopened'.
to The owner will be changed from (none) 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.