RT::Ex...toName(3pm)
π NAME π
okay bestie, welcome to the RT-Extension-AssetAutoName page β this is RT::Ex...toName(3pm) if you're being all formal about it, from the User Contributed Perl Documentation crew. and what does it do?? it auto generates a name for an asset β¨ like, you don't name it, the extension names it, slay.
πΈ DESCRIPTION πΈ
so here's the tea π: this extension lets you define templates to use for asset categories, and those templates get used whenever no name is set on an asset. you can use this to generate the name based on CustomFields (or other values). lowkey iconic, ngl.
fr fr, it was developed for tracking components of servers where the name should be based on the make, model and serial number of a component. but the way that those should be stored individually as Custom Fields to ease searching and reporting?? obsessed. π
β RT VERSION β
works with RT 4.4.x and 5.0.x. periodt. π
π INSTALLATION π
okay bestie, here's the whole vibe check, step by step:
- run these:
perl Makefile.PL
make
make install
heads up!! you may need root permissions for that last one π
- edit your
/opt/rt4/etc/RT_SiteConfig.pmβ yes, that exact file, don't come for me β and add this line:
Plugin('RT::Extension::AssetAutoName');
- then add templates for the categories you'd like to have use this extension:
Set( %AssetAutoName, 2 => 'Card: __CF.28__ (__Status__)' );
so like, 28 is the CustomField to use, and you can also specify the name here. π
and if the CustomField is a multi-value?? only the first value is used. that's it. that's the rule. π«Ά
- clear your mason cache:
rm -rf /opt/rt4/var/mason_data/obj
- restart your webserver. and then you're done, main character energy achieved π
π USAGE π
if the asset name is not set, the empty string, or just an x, we'll dynamically generate a name based on a template. β¨
and ngl, it's useful to allow 'x' in the case that data is being bulk updated β it has been reported that with some tools, setting a short string is easier than deleting the text. iykyk π
π AUTHOR π
Andrew Ruthven, Catalyst Cloud Ltd <puck@catalystcloud.nz<gt>
π LICENSE AND COPYRIGHT π
This software is Copyright (c) 2018-2020 by Catalyst Cloud Ltd
This is free software, licensed under:
The GNU General Public License, Version 2, June 1991
okay that's the whole page bestie, you ate that πβ¨ and just so you know where this came from: it's the perl v5.40.1 docs, dated 2025-03-15, for the RT::Ex...toName(3pm) page. go forth and name some assets, queen ππ¦π
π¦ where this page comes from
- debian trixie: rt5-extension-assetautoname 0.05-7 Β· GPL-2.0-only
- ubuntu resolute: rt5-extension-assetautoname 0.05-7 Β· GPL-2.0-only
- ubuntu stonking: rt5-extension-assetautoname 0.05-7 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms