rt-search-attributes(8)
π NAME π
rt-search-attributes β the lil script that goes hunting for RT Attribute objects πβ¨ it's part of the Request Tracker reference crew, and yes she ate π
πΈ SYNOPSIS πΈ
rt-search-attributes [OPTION] ATTRIBUTE_NAME QUALIFYING_CODE
π¦ DESCRIPTION π¦
okay so bestie, here's the vibe: this script searches all attributes named ATTRIBUTE_NAME with qualifying code QUALIFYING_CODE, and then prints out the deets of every attribute that matched. no cap, that's it, that's the whole main character moment π
so QUALIFYING_CODE is where you get to be β¨creativeβ¨ because it can use a bunch of variables that call on RT::Attribute's properties:
$Id$ObjectType$ObjectId$Name$Description$Content
and $_ is available as shorthand for $Content β iykyk, it's giving convenience π
π the flags (they live inside DESCRIPTION, that's just where they are, don't @ me)
-c,--contentβ print attribute content π¨οΈ-h,--helpβ display this help and exit π«Ά
π e.g.
rt-search-attributes SavedSearch '$id > 10'
rt-search-attributes Search '$_->{Query} =~ /Status/'
literally just copy-paste those and change what you need, bestie. two whole examples, both iconic β
and that's the page!! this was written for perl v5.38.2 and it's dated 2023-10-29, so if you're reading this from the future, hey, hope the vibes are still immaculate ππ¦β¨
π¦ where this page comes from
- ubuntu noble: request-tracker4 4.4.7+dfsg-1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms