Skip to content

Commit d7c3c03

Browse files
committed
Add reference about relative dates to Query Builder POD
Add reference about DateTime::Format::Natural to Query Builder POD with a few examples.
1 parent 464dacd commit d7c3c03

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

docs/query_builder.pod

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -512,6 +512,24 @@ To compare LargeContent instead:
512512

513513
CF.IP = CF.IPRange.LargeContent
514514

515+
=item Search tickets by relative dates
516+
517+
RT supports relative dates in searches, so you can search for tickets
518+
that were resolved in the last week, during the last month, as well as
519+
other relative dates.
520+
521+
For example, if you want to search tickets created during the last month,
522+
you can use the following search:
523+
524+
Created >= 'beginning of last month' and Created < 'this month'
525+
526+
Or if you want to search tickets resolved since the last week:
527+
528+
Resolved >= 'last week'
529+
530+
You can check relative date strings that RT supports at
531+
L<https://metacpan.org/pod/DateTime::Format::Natural::Lang::EN> .
532+
515533
=back
516534

517535
=head1 Learn More

0 commit comments

Comments
 (0)