[Rt-commit] rt branch 5.0/add-datetime-format-natural-pod-reference created. rt-5.0.5-35-gd7c3c039a3

BPS Git Server git at git.bestpractical.com
Wed Nov 1 12:13:32 UTC 2023


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "rt".

The branch, 5.0/add-datetime-format-natural-pod-reference has been created
        at  d7c3c039a30c11f0804d3329e31fb0678efd8260 (commit)

- Log -----------------------------------------------------------------
commit d7c3c039a30c11f0804d3329e31fb0678efd8260
Author: Ronaldo Richieri <ronaldo at bestpractical.com>
Date:   Wed Nov 1 09:12:42 2023 -0300

    Add reference about relative dates to Query Builder POD
    
    Add reference about DateTime::Format::Natural to Query Builder POD
    with a few examples.

diff --git a/docs/query_builder.pod b/docs/query_builder.pod
index b0ce1c4678..8e40d539c8 100644
--- a/docs/query_builder.pod
+++ b/docs/query_builder.pod
@@ -512,6 +512,24 @@ To compare LargeContent instead:
 
     CF.IP = CF.IPRange.LargeContent
 
+=item Search tickets by relative dates
+
+RT supports relative dates in searches, so you can search for tickets
+that were resolved in the last week, during the last month, as well as
+other relative dates.
+
+For example, if you want to search tickets created during the last month,
+you can use the following search:
+
+    Created >= 'beginning of last month' and Created < 'this month'
+
+Or if you want to search tickets resolved since the last week:
+
+    Resolved >= 'last week'
+
+You can check relative date strings that RT supports at
+L<https://metacpan.org/pod/DateTime::Format::Natural::Lang::EN> .
+
 =back
 
 =head1 Learn More

-----------------------------------------------------------------------


hooks/post-receive
-- 
rt


More information about the rt-commit mailing list