Giter Site home page Giter Site logo

mrichards99 / oncall Goto Github PK

View Code? Open in Web Editor NEW

This project forked from stfc/oncall

0.0 0.0 1.0 28 KB

Python script to automate filling in STFC's Tier 1 spreadsheet monitoring who has been called out

License: Apache License 2.0

Python 100.00%

oncall's Introduction

Automating OnCall Spreadsheet

This is a Python script to aid filling in the OnCall spreadsheet. The spreadsheet is used during the 3pm meeting on a Monday to discuss callouts from the past week. The script takes data from a TSV file downloaded from RT using a specific search (see 'Using Script') and appends it to the ongoing OnCall spreadsheet (found within Tier 1's section on the TWiki).

Required Packages

Only openpyxl is needed for this script. The script was written using version 2.5.3 of this module.

Using Script

There are a couple of steps to using this script as there will be some cleanup to do once the script has executed.

Pre-Script Execution

  • Create a custom ticket search in RT:
    • Queue is OnCall
    • Status is new or open
    • Subject not like 'NoCall'
    • Subject not like 'Tier1_service_Test_Nagios_and_paging_on_host_nagger' (test pager tickets)
    • Subject not like 'Downtime Expiry Report'
    • Sort ID by ascending
  • Download spreadsheet (.TSV file) from search results (press 'Spreadsheet' hyperlink towards top right of the page)
  • Put OnCall spreadsheet (found in TWiki within Tier 1 section) and TSV file in same folder as script and then run script

Post-Script Execution

  • For each row added by the script, double click and press ENTER on the cell in 'Time issued' column. This will execute the formula that deals with the conditional formatting for working hours as this doesn't occur during the script. You will know which rows should be black as these will have the 'Normal Service Restored?' and the 'Handled by' columns filled in.
  • Fill in any blank cells the script didn't fill from the following columns:
    • Host
    • Service
    • People involved
    • Handled by
    • Any helpful comments
  • Upload to TWiki
  • After the meeting, resolve all tickets from the OnCall queue, except the ones where the situation is still ongoing or haven't been put in the spreadsheet

oncall's People

Contributors

mrichards99 avatar jrha avatar

Forkers

bencedwards

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.