rt-email-group-admin(8)

πŸ“¦
version 4.4.7 Β· 5 versions
, in ubuntu noble

πŸ’Œ rt-email-group-admin β€” the manual (8)

okay bestie, gather round, because this is rt-email-group-admin, a Request Tracker Reference page, and it's literally the command line tool for administrating NotifyGroup actions. yes it's a mouthful. no we're not shortening it. πŸ’…


✨ NAME ✨

rt-email-group-admin β€” Command line tool for administrating NotifyGroup actions 🫢


🌈 SYNOPSIS 🌈

here's the whole vibe, copy-paste ready, no cap:

rt-email-group-admin --list
rt-email-group-admin --create 'Notify foo team' --group Foo
rt-email-group-admin --create 'Notify foo team as comment' --comment --group Foo
rt-email-group-admin --create 'Notify group Foo and Bar' --group Foo --group Bar
rt-email-group-admin --create 'Notify user foo@bar.com' --user foo@bar.com
rt-email-group-admin --create 'Notify VIPs' --user vip1@bar.com
rt-email-group-admin --add 'Notify VIPs' --user vip2@bar.com --group vip1 --user vip3@foo.com
rt-email-group-admin --rename 'Notify VIPs' --newname 'Inform VIPs'
rt-email-group-admin --switch 'Notify VIPs'
rt-email-group-admin --delete 'Notify user foo@bar.com'

look at all those little jobs it can do. it's giving multitasking icon. πŸ‘‘


πŸ¦‹ DESCRIPTION πŸ¦‹

so basically this script lists, creates, modifies or deletes scrip actions in the RT DB. and once you've made an action? you can use it in a scrip. that's the whole point, that's the assignment. ✨

for example (and this is the original example, i'm not making this up), you can create the following action using this script:

rt-email-group-admin --create 'Notify developers' --group 'Development Team'

and THEN, bestie, you can add the following scrip to your Bugs queue:

Condition: On Create
Action:    Notify developers
Template:  Transaction
Stage:     TransactionCreate

and boom πŸ’₯ your development team will be notified on every new ticket in the queue. iconic behavior honestly.


πŸ’– USAGE πŸ’–

rt-email-group-admin --COMMAND ARGS

that's it. that's the format. command, then args, go off. πŸŽ€


πŸ‘‘ COMMANDS πŸ‘‘

⭐ list

Lists actions and its descriptions. short, sweet, does exactly what it says on the tin.

πŸ“ create NAME [--comment] [--group GNAME] [--user NAME-OR-EMAIL]

Creates new action with NAME and adds users and/or groups to its recipient list. Would be notify as comment if --comment specified. The user, if specified, will be autocreated if necessary. (yes, it just makes them for you. generous fr fr.)

🧚 add NAME [--group GNAME] [--user NAME-OR-EMAIL]

Adds groups and/or users to recipients of the action NAME. The user, if specified, will be autocreated if necessary. same deal as above.

πŸ’€ delete NAME

Deletes action NAME if scrips doesn't use it. so if a scrip is holding onto it? nope, no delete for you. πŸ™ˆ

🌸 switch NAME

Switch action NAME from notify as correspondence to comment and back. it's a toggle, bestie. flip it, flop it.

πŸ’œ rename NAME --newname NEWNAME

Renames action NAME to NEWNAME. glow-up arc for your action names.

πŸŽ€ NOTES

If command has option --group or --user then you can use it more then once, if other is not specified.

so like β€” repeat --group as many times as you want, or repeat --user as many times as you want. just don't try to double up on both at the same time, iykyk. 🫢

🫢 AUTHOR 🫢

Ruslan U. Zakirov <ruz@bestpractical.com>


🌟 SEE ALSO 🌟

  • RT::Action::NotifyGroup
  • RT::Action::NotifyGroupAsComment

and that's the whole page, bestie!! πŸ’– written against perl v5.38.2, dated 2023-10-29, and that's your rt-email-group-admin(8) moment. go notify somebody. slay. πŸ’…βœ¨πŸŒˆ

πŸ“¦ where this page comes from