wiki:TracQuery

Trac Ticket Queries

In addition to reports, Trac provides support for custom ticket queries, used to display lists of tickets meeting a specified set of criteria.

To configure and execute a custom query, switch to the View Tickets module from the navigation bar, and select the Custom Query link.

Filters

When you first go to the query page the default filter will display tickets relevant to you:

  • If logged in then all open tickets it will display open tickets assigned to you.
  • If not logged in but you have specified a name or email address in the preferences then it will display all open tickets where your email (or name if email not defined) is in the CC list.
  • If not logged and no name/email defined in the preferences then all open issues are displayed.

Current filters can be removed by clicking the button to the left with the minus sign on the label. New filters are added from the pulldown lists at the bottom corners of the filters box ('And' conditions on the left, 'Or' conditions on the right). Filters with either a text box or a pulldown menu of options can be added multiple times to perform an or of the criteria.

You can use the fields just below the filters box to group the results based on a field, or display the full description for each ticket.

Once you've edited your filters click the Update button to refresh your results.

Clicking on one of the query results will take you to that ticket. You can navigate through the results by clicking the Next Ticket or Previous Ticket links just below the main menu bar, or click the Back to Query link to return to the query page.

You can safely edit any of the tickets and continue to navigate through the results using the Next/Previous/Back to Query links after saving your results. When you return to the query any tickets which were edited will be displayed with italicized text. If one of the tickets was edited such that it no longer matches the query criteria the text will also be greyed. Lastly, if a new ticket matching the query criteria has been created, it will be shown in bold.

The query results can be refreshed and cleared of these status indicators by clicking the Update button again.

Saving Queries

Trac allows you to save the query as a named query accessible from the reports module. To save a query ensure that you have Updated the view and then click the Save query button displayed beneath the results. You can also save references to queries in Wiki content, as described below.

Note: one way to easily build queries like the ones below, you can build and test the queries in the Custom report module and when ready - click Save query. This will build the query string for you. All you need to do is remove the extra line breaks.

You may want to save some queries so that you can come back to them later. You can do this by making a link to the query from any Wiki page.

[query:status=new|assigned|reopened&version=1.0 Active tickets against 1.0]

Which is displayed as:

Active tickets against 1.0

This uses a very simple query language to specify the criteria (see Query Language).

Alternatively, you can copy the query string of a query and paste that into the Wiki link, including the leading ? character:

[query:?status=new&status=assigned&status=reopened&group=owner Assigned tickets by owner]

Which is displayed as:

Assigned tickets by owner

Using the [[TicketQuery]] Macro

The  TicketQuery macro lets you display lists of tickets matching certain criteria anywhere you can use WikiFormatting.

Example:

[[TicketQuery(version=0.6|0.7&resolution=duplicate)]]

This is displayed as:

No results

Just like the query: wiki links, the parameter of this macro expects a query string formatted according to the rules of the simple ticket query language.

A more compact representation without the ticket summaries is also available:

[[TicketQuery(version=0.6|0.7&resolution=duplicate, compact)]]

This is displayed as:

No results

Finally, if you wish to receive only the number of defects that match the query, use the count parameter.

[[TicketQuery(version=0.6|0.7&resolution=duplicate, count)]]

This is displayed as:

0

Customizing the table format

You can also customize the columns displayed in the table format (format=table) by using col=<field> - you can specify multiple fields and what order they are displayed by placing pipes (|) between the columns like below:

[[TicketQuery(max=3,status=closed,order=id,desc=1,format=table,col=resolution|summary|owner|reporter)]]

This is displayed as:

Results (1 - 3 of 171)

Ticket Resolution Summary Owner Reporter
#357 invalid SPAM xi dontecorner@…
#356 invalid SPAM xi francesglockner@…
#354 invalid SPAM xi morganhuondekerilleau@…

Full rows

In table format you can also have full rows by using rows=<field> like below:

[[TicketQuery(max=3,status=closed,order=id,desc=1,format=table,col=resolution|summary|owner|reporter,rows=description)]]

This is displayed as:

Results (1 - 3 of 171)

Ticket Resolution Summary Owner Reporter
#357 invalid SPAM xi dontecorner@…

Reported by dontecorner@…, 2 months ago.

Description

Do you want to upload your flip videos to YouTube? and enjoy personalized videos with your family and friends? First, sign in or make an account on YouTube?, go to the yellow "upload" button in the left hand corner; second, press the button "upload video", find your video which you want to upload; At last, enter the title and a description of the video and wait for its uploading.

So, use Article2Video Service the least package of which allows creating 80 videos a month. I use it for getting largest traffic and profits from my affiliate sites.

Speaking of eye makeup, you may be fascinated with dramatic eye makeup tutorials offered by jennissemakeup. She has various how-to guides best youtube on the video sharing site. Aside from makeup videos, she also uploaded product reviews, which may just interest you.

No harm will ever come from naming your video file with your keyword phrase. I see this all too often, a video file is named video1.wmv instead of anything related to what the video is actually about. Many video sites actually have the original video file name listed on the  click here video viewing page itself. This is another opportunity to target more keywords, so use it.

The  American television producer and actor did some important fashion choices in the period of 80's. In this Cosby Sweater Project, each  episode offers different kinds of game to recreate his magic loud shirts.

#356 invalid SPAM xi francesglockner@…

Reported by francesglockner@…, 3 months ago.

Description

Posting a video in YouTube? is a great business tool. However, with the  thousands of videos being posted everyday, a marketing video can easily get disregarded to oblivion. If this happens, it will be a complete waste of money and effort.

#3 If you are using internet explorer clear out all your cookies, history and temporary files and then run windows update. Sometimes patching internet explorer will solve this problem. With videos slow on YouTube?. You can find windows update on the windows start menu usually at the top.

You have to be sure that your computer is not the culprit and is not working slow. Download and regularly use a good system cleaning and  http://chicagotribune.com -  for beginners - optimizing software such as RegInOut? to maintain healthy performance of your system.

The first and most important is your video title. This should have your main keyword phrase that you would like to rank for. The title should also be well researched. Don't just put some highly competitive keyword phrase and expect to rank for it. Use a keyword analysis tool to find a keyword phrase within your niche that gets a fair amount of searches but is not completely saturated.

First if you don't have the browser download it here Once you download the browser launch it then click tools, add-ons, the add-on windows should pop-up.

YouTube? is best youtube so far the most traffic oriented video network on the Internet. It is therefore, it is a great platform to do promotional and marketing activities. But to have a strong presence you should have a successful video marketing campaign that give you greatest amount views in a shorter period. So, how can someone get greatest amount views quickly?

Successful marketers always know they have to stay current with the latest and greatest marketing processes if they want to continue to attract buyers. The hottest marketing tool right now is YouTube?.

Finally, Describe and upload your video by press the "Browse" button to find the video file on your computer and then press the "Upload Video" button.

#354 invalid SPAM xi morganhuondekerilleau@…

Reported by morganhuondekerilleau@…, 3 months ago.

Description

To seek bankruptcy relief, first you have to learn enough to know where to start.

This site helps you try this. It will give you an review of the insolvency procedure and join you with a wide variety of resources (information, merchandise, solutions, and lawyers) that can help you through the insolvency maze.

Unlike other insolvency websites, you don't need to register or provide any identifying info to use the means-test calculator. That's your responsibility, if you need to  contact an advertizer, but this website is not after your title or e-mail. Would you need certainly to file for bankruptcy?

You might not have to seek bankruptcy relief.

You might want to conserve it for when you actually desire it--you can use Chapter 7 insolvency only once every seven years.

On the other-hand, your unique mix of revenue, debt, and home may be a perfect fit for bankruptcy protection. The vast bulk of those who end up filing for bankruptcy truly do need it.

The typical bankruptcy filer is a man already in  delicate economic situation, regularly with large quantities of credit card debt, who subsequently suddenly faces a spate of tough luck (loss of occupation, injury, divorcement, uninsured health-related expenses), causing mounting penalties and an unpayable amount of debt.

Bankruptcy regulation is designed to help individuals just like this, who need assist in creating a clean break -- a "clean sheet" on lifestyle, rather than devote the remainder in their lives being crushed by the burden of unpayable debt.

If you have any questions concerning where by and how to use  bankruptcy lawyer san diego, you can make contact with us at our own web page. You nevertheless may not desire bankruptcy to protect your assets, even if you're facing unpayable debt. Under the Exemption Laws of Ca, you may already be "ruling-evidence." If so, you do not need to dread charge card companies only because you owe them. Unsecured lenders (like credit card firms) can not simply take your items if it's exempt. If there are harassing phonecalls, it is possible to quit them with a simple phone call or letter. (However, interest and fees on your debt will  continue to amass and insolvency will stop that.)

But exemption laws do not shield property from all types of debts or all kinds of lenders. For instance, exemption laws usually don't protect you against collection of child-support or tax debts. And if you purchased property and vowed it as collateral for the purchase-money loan (for example, a car loan or mortgage), the lender can take the property regardless of any exemption law.

These are called "nondischargeable" debts. This usually includes child support, most student loans, and most tax debts.

Query Language

query: TracLinks and the [[TicketQuery]] macro both use a mini “query language” for specifying query filters. Basically, the filters are separated by ampersands (&). Each filter then consists of the ticket field name, an operator, and one or more values. More than one value are separated by a pipe (|), meaning that the filter matches any of the values. To include a literal & or | in a value, escape the character with a backslash (\).

The available operators are:

= the field content exactly matches one of the values
~= the field content contains one or more of the values
^= the field content starts with one of the values
$= the field content ends with one of the values

All of these operators can also be negated:

!= the field content matches none of the values
!~= the field content does not contain any of the values
!^= the field content does not start with any of the values
!$= the field content does not end with any of the values

The date fields created and modified can be constrained by using the = operator and specifying a value containing two dates separated by two dots (..). Either end of the date range can be left empty, meaning that the corresponding end of the range is open. The date parser understands a few natural date specifications like "3 weeks ago", "last month" and "now", as well as Bugzilla-style date specifications like "1d", "2w", "3m" or "4y" for 1 day, 2 weeks, 3 months and 4 years, respectively. Spaces in date specifications can be left out to avoid having to quote the query string.

created=2007-01-01..2008-01-01 query tickets created in 2007
created=lastmonth..thismonth query tickets created during the previous month
modified=1weekago.. query tickets that have been modified in the last week
modified=..30daysago query tickets that have been inactive for the last 30 days

See also: TracTickets, TracReports, TracGuide