rt-search-attributes(8)

NAME πŸ¦‹

rt-search-attributes β€” bestie, this is how you go hunting for RT Attribute objects πŸ”βœ¨


SYNOPSIS πŸŽ€

rt-search-attributes [OPTION] ATTRIBUTE_NAME QUALIFYING_CODE

DESCRIPTION πŸ’œ

okay so picture this: you got a whole pile of attributes and you only want the ones that pass the vibe check. That's literally the whole job. This script takes every single attribute named ATTRIBUTE_NAME, runs your qualifying code QUALIFYING_CODE on it, and prints out the deets of all the ones that matched. slay πŸ’…

Now here's the cute part β€” your QUALIFYING_CODE gets a whole little squad of variables it can call on, straight from RT::Attribute's properties:

  • $Id
  • $ObjectType
  • $ObjectId
  • $Name
  • $Description
  • $Content

and $_ is your little shorthand bestie for $Content, so you don't have to type the whole thing out like a chump 🫢

OPTIONS ✨

  • -c, --content β€” prints the attribute content πŸ’–
  • -h, --help β€” shows you this help and then dips out πŸ‘‹

examples, fr fr 🌸

rt-search-attributes SavedSearch '$id > 10'
rt-search-attributes Search '$_->{Query} =~ /Status/'

look at her go 😭πŸ”₯


heads up bestie: that first example is $id with a lowercase i β€” copied exactly, no cap, don't come for me πŸ™ˆ

this page was served fresh by perl v5.40.1 on 2026-06-21, straight from the Request Tracker Reference, and it's rt-search-attributes(8) β€” periodt πŸ’…βœ¨πŸ‘‘

πŸ“¦ where this page comes from