2.7 KiB
2.7 KiB
Cram-A-Lot Ticket Transfer Script
This was created to handle the bulk transfer of a group's tickets from one Freshdesk account to another. This is not identical transfer, as it is copying the data and then opening a new ticket on the destination account with the details it could obtain from the source account.
Prior to starting, it would be helpful if you have the following items saved to make the process of inputting the information much easier:
- The source domain of the freshdesk account you are transferring from
- The API key for the source account
- The target domain of the freshdesk account you are transferring to
- The API Key for destination account
- The name of the group you want to transfer from
Requirements
- Python v3.x.x
- The 'requests' Python library
How to Install
Windows:
- Download the latest version of Python 3
Python Download Page - Install PIP to handle the installation of new Python libraries
- The PIP install script can be obtained from here:
PIP install script - Run the following cmd command in the directory that the above script was installed into:
python get-pip.py
- The PIP install script can be obtained from here:
- Close and re-open the cmd window to ensure the package has been added to the global environment.
- Run the following command to ensure that PIP has been installed:
pip -v - Install the requests library by running the following command in a cmd window
pip install requests
Linux:
- Run the following command in a bash terminal
(Debian & Ubuntu)
sudo apt-get update && sudo apt-get install -y python3 python3-pip && pip3 install requests
(RHEL, Fedora, and CentOS)
sudo yum install -y python3 python3-pip && pip3 install requests
OR
sudo dnf install -y python3 python3-pip && pip3 install requests
(Arch)
sudo pacman -Syu --noconfirm python python-pip && pip install requests
How to Use
Hints:
- When providing the domains, ensure that you do not include a backslash at the end. (ex http://your_account.freshdesk.com)
- When you are entering the name of the group, make sure to type it exactly as it appears on Freshdesk otherwise you will likely receive an error.
- Start the script by navigating to where ticket_transfer.py is installed, and in a terminal type the following:
Windows:
python3 ticket_transfer.py
Linux:
ticket_transfer.py - Input the requested information when prompted.
- Wait for the script to complete and then check to make sure the tickets transferred correctly in the desination account.