eric-at-nocoast / ticket-field-deleter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Delete Zendesk ticket fields in bulk

DISCLAIMER

This script has the ability to make major changes to your Zendesk instance via deleting ticket fields.

This is not supported by Zendesk Use with caution and at your own risk.


This script loops through all of your ticket fields finding all that match the created_at date & title deleting them

Getting started

​ Follow these steps to get a local copy up and running. ​

Prerequisites

  • npm
npm install npm@latest -g

Installation

  1. Clone the repo
git clone https://github.com/eric-at-zd/ticket-field-deleter
  1. Install dependancies
npm install
  1. Copy the .env.example file into an .env

  2. Replace placeholder values in the .env file with one's relevant to your account

  3. Put the date you'd like to match in the matchDate field on line 52

    let matchDate = "2022-01-17";
  1. Put the titles you'd like to match in the matchTitleArr array on line 54
    let matchTitleArr = ["example field 1", "example field 2"];
  1. Run the script
npm run start

About


Languages

Language:JavaScript 96.8%Language:Shell 3.2%