55 lines
2.7 KiB
Markdown
55 lines
2.7 KiB
Markdown
# 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:
|
|
1. Download the latest version of Python 3<br>
|
|
<a href="https://www.python.org/downloads/">Python Download Page</a><br>
|
|
2. Install PIP to handle the installation of new Python libraries<br>
|
|
- The PIP install script can be obtained from here: <br>
|
|
<a href="https://bootstrap.pypa.io/get-pip.py">PIP install script</a><br>
|
|
- Run the following cmd command in the directory that the above script was installed into:<br>
|
|
```python get-pip.py```<br>
|
|
3. Close and re-open the cmd window to ensure the package has been added to the global environment.<br>
|
|
4. Run the following command to ensure that PIP has been installed:<br>
|
|
```pip -v```<br>
|
|
5. Install the requests library by running the following command in a cmd window<br>
|
|
```pip install requests```<br>
|
|
|
|
### Linux:
|
|
1. Run the following command in a bash terminal<br><br>
|
|
(Debian & Ubuntu)<br>
|
|
```sudo apt-get update && sudo apt-get install -y python3 python3-pip && pip3 install requests```<br><br>
|
|
(RHEL, Fedora, and CentOS)<br>
|
|
```sudo yum install -y python3 python3-pip && pip3 install requests```<br>
|
|
OR<br>
|
|
```sudo dnf install -y python3 python3-pip && pip3 install requests```<br><br>
|
|
(Arch)<br>
|
|
```sudo pacman -Syu --noconfirm python python-pip && pip install requests```<br><br>
|
|
|
|
## How to Use
|
|
|
|
*Hints:<br>*
|
|
*- When providing the domains, ensure that you do not include a backslash at the end. (ex http://your_account.freshdesk.com)<br>*
|
|
*- 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.<br>*
|
|
|
|
1. Start the script by navigating to where ticket_transfer.py is installed, and in a terminal type the following:<br>
|
|
Windows:<br>
|
|
```python3 ticket_transfer.py```<br>
|
|
Linux:<br>
|
|
```ticket_transfer.py```<br>
|
|
2. Input the requested information when prompted.<br>
|
|
3. Wait for the script to complete and then check to make sure the tickets transferred correctly in the desination account.<br> |