Code Monkey home page Code Monkey logo

ps-trackitws's Introduction

PowerShell Track-it! WebService API Tools (ps-trackitws)

Module created to allow for Work Order Operations from Track-it!'s WebService API, via PowerShell Invoke-WebRequest cmdlets. For use with other cmdlets and scripts.

Installation

Clone the repository into your $Home\Documents\WindowsPowerShell\Modules folder (create the Modules folder if you dont have one already)

cd $Home\Documents\WindowsPowerShell\Modules\
git clone git@github.com:mikepruett3/ps-trackitws.git

Then you can import the custom module into your running shell...

Import-Module ps-trackitws

Usage

Connect to Track-it!'s WebService API

Running this function will create a Global Variable which is used with subsequent functions of this module.

This function is looking for two parameters at runtime...

Parameter Description
Server The server name (Fully-Qualified) of the server running the Track-it! WebService API instance.
Credentials The credentials used to connect to the Track-it! WebService API. These credentials must be configured with the Technician Role.

Once you have these Environment Variables, run the following:

Connect-Trackit -Server <server-name> -Credentials <username>

Create WorkOrder

Creating a new WorkOrder in Track-it! WebService API can be performed by the following:

New-WorkOrder -Summary 'Description of the problem' `
              -Status 'Open' #Cannot create a Closed ticket, must allways be open! `
              -Technician 'Your Name' `
              -Requestor 'Requestors Name' `
              -Company 'Company Name' `
              -Priority 'WorkOrder Priorty' `
              -Category 'WorkOrder Type' `
              -Type 'WorkOrder Type' `
              -SubType 'WorkOrder SubType' `
              -Computer 'Computer or Asset Name (if required)' `

Retrieve WorkOrder

Retrieving an existing WorkOrder in Track-it! WebService API can be performed by the following:

Get-WorkOrder -WorkOrder 'WorkOrder Number'

Close WorkOrder

Closing an existing WorkOrder in Track-it! WebService API can be performed by the following:

Close-WorkOerder -WorkOrder 'WorkOrder Number'

Disconnecting from Track-it! WebService API

Disconnect-Trackit

ps-trackitws's People

Contributors

mikepruett3 avatar

Stargazers

William Aycardi avatar Le Aundre D. Jackson Sr.  avatar

Watchers

James Cloos avatar  avatar  avatar

ps-trackitws's Issues

Adding a "Note"

First of all - Thank You for putting this all together!

I'd like to be able to add an initial note to the ticket I create.
I see an API exists, API: workorder/AddNote

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.