zammad helper scripts
virtualenv .zammadls
source .zammadls/bin/activate
pip install -r requirements.txt
create a configuration (see config.yml.sample)
the default locations the config is expected are: config.yml and config/config.yml
(the account used requires admin and agent rights)
Zammad helper script to delete or change tags
./retag.py -l INFO -t TESTREPLACETAG -a NEWREPLACETAG
./retag.py -l INFO -t TESTREPLACETAG ANOTHETRTAGTOREPLACE -a NEWREPLACETAG
-h, --help show this help message and exit
-t, --tags TAGS [TAGS ...]
tag to remove
-r, --donotdelete do not delete tags, just remove them from tickets
-a, --addtags ADDTAGS [ADDTAGS ...]
tag to add to all tickets that have the old tag
-l, --loglevel {CRITICAL,FATAL,ERROR,WARN,WARNING,INFO,DEBUG,NOTSET}
set loglevel
-c, --config CONFIG [CONFIG ...]
config file
-n, --dryrun dry run, do not perform changes
cat <batch file>.csv | xargs -L 1 ./retag.py
with a <batch file> like
-a ABbaramundicleanup2019 -t Abbaramundicleanup2019
-a ABbitlockerissue -t Abbitlockerissue
-a ABgpo -t Abgpo
-a ABinformationrequest -t Abinformationrequest
-a ABinfrastruktur -t Abinfrastruktur Abinfra Abinfrastructure
...