<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=Reporting</id>
	<title>Reporting - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://rt-wiki.bestpractical.com/index.php?action=history&amp;feed=atom&amp;title=Reporting"/>
	<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=Reporting&amp;action=history"/>
	<updated>2026-08-22T08:50:16Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.41.1</generator>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=Reporting&amp;diff=26533&amp;oldid=prev</id>
		<title>Phanousk at 14:22, 15 November 2017</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=Reporting&amp;diff=26533&amp;oldid=prev"/>
		<updated>2017-11-15T14:22:39Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 10:22, 15 November 2017&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l13&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt; &lt;/del&gt;&amp;lt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nowiki&lt;/del&gt;&amp;gt;#!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source lang=&quot;bash&quot;&lt;/ins&gt;&amp;gt;#!/bin/bash&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  ###########################&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  ###########################&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l69&quot;&gt;Line 69:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 69:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  ## END ##&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  ## END ##&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;/&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;nowiki&lt;/del&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  &amp;lt;/&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;source&lt;/ins&gt;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l76&quot;&gt;Line 76:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 76:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;----&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt; &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;source&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   ###############################################&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   ###############################################&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   ###  RT3 Ticket Details for Ticket# 37  ###&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   ###  RT3 Ticket Details for Ticket# 37  ###&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l220&quot;&gt;Line 220:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 220:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   ======&amp;amp;gt; END Attachment# 37/254 &amp;amp;lt;======&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   ======&amp;amp;gt; END Attachment# 37/254 &amp;amp;lt;======&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   ###  END TICKET 37 DETAIL  ###&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   ###  END TICKET 37 DETAIL  ###&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/source&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key bestpractical_mediawiki1459887241:diff:1.41:old-3143:rev-26533:php=table --&gt;
&lt;/table&gt;</summary>
		<author><name>Phanousk</name></author>
	</entry>
	<entry>
		<id>https://rt-wiki.bestpractical.com/index.php?title=Reporting&amp;diff=3143&amp;oldid=prev</id>
		<title>Admin: 2 revisions imported</title>
		<link rel="alternate" type="text/html" href="https://rt-wiki.bestpractical.com/index.php?title=Reporting&amp;diff=3143&amp;oldid=prev"/>
		<updated>2016-04-06T20:36:16Z</updated>

		<summary type="html">&lt;p&gt;2 revisions imported&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==== 2009-01-22 by Patrick S. Kyne ====&lt;br /&gt;
&lt;br /&gt;
I have been using RT3 for a while now as my trouble-ticketing system. For most things, it just works and does so well.&lt;br /&gt;
&lt;br /&gt;
However, I must generate reports on those tickets and have not found an easy way to get the information I needed from RT3 quickly and neatly. (Printing of tickets from Firefox on Linux in my environment does not look very good.)&lt;br /&gt;
&lt;br /&gt;
At first, I was just viewing the ticket(s) in RT3 and then copying/pasting the information I wanted into my reports. This was rather awkward for me and very time consuming. I Googled, read the docs/[[FAQs]]/wiki, but didn&amp;#039;t find anything that would readily do what I wanted/needed. I figured that I had one of four possibilities: Pulling the data directly from the database --[[MySQL]] here-- (I didn&amp;#039;t know the database schema, but couldn&amp;#039;t find all the information I wanted easily.); Possibly installing/configuring RTFM-the RT Faq Manager (after searching the docs/[[FAQs]]/wiki I wasn&amp;#039;t confident I&amp;#039;d get what I wanted.); Write a perl application using the RT-api (I didn&amp;#039;t find very much information about the RT-api on-line so I decided this would be my last choice.); or Use the RT-Tool mentioned in the [[FAQs]] to script my solution (I opted for this last route because it looked as if it would consume the least amount of time.)&lt;br /&gt;
&lt;br /&gt;
For my purposes, I need the following information from RT: Ticket#, Queue, Owner, Subject, Status, Created Date, Resolved Date, Time Worked, some custom fields, AND the dates &amp;amp;amp; content of the comments/replies fields. These last bits of data I found were considered attachments to the ticket by RT. Of course, I only wanted to get the attachments that were of type text.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Below is my solution. It is not elegant, but rather a functional bash script. I hope it can be of use to others.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;#!/bin/bash&lt;br /&gt;
 &lt;br /&gt;
 ###########################&lt;br /&gt;
 ### rt3ticket-report.sh ###&lt;br /&gt;
 ###&lt;br /&gt;
 ### by Patrick S. Kyne&lt;br /&gt;
 ###&lt;br /&gt;
 ### Quick? and dirty little script to print out RT3 ticket details&lt;br /&gt;
 ###  including ALL text/plain &amp;amp;amp; text/html attachments&lt;br /&gt;
 ###  for use outside of RT3.&lt;br /&gt;
 ###&lt;br /&gt;
 ### Requires: RT3, sed, &amp;amp;amp; grep.&lt;br /&gt;
 ###&lt;br /&gt;
 ### Created 2009-01-22 by Patrick S. Kyne&lt;br /&gt;
 ###&lt;br /&gt;
 ### Note: I often use this script to report on a group of tickets&lt;br /&gt;
 ###  by running from bash:&lt;br /&gt;
 ###    for TICKET in 37 45 46 47 48 51 52 53 55 56 57 ; do&lt;br /&gt;
 ###        ./rt3ticket-report.sh ${TICKET} ; done | tee tickets.txt&lt;br /&gt;
 ###&lt;br /&gt;
 ###########################&lt;br /&gt;
 &lt;br /&gt;
 RTPATH=&amp;quot;/opt/rt3&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 if [[ $# -lt 1 ]]; then&lt;br /&gt;
         echo -e &amp;quot;\nERROR: Missing RT Ticket Number.\n&amp;quot;&lt;br /&gt;
         echo &amp;quot;Usage: $0 {ticket number} [ &amp;amp;gt; {filename} ]&amp;quot;&lt;br /&gt;
         echo -e &amp;quot;\tPrint RT Ticket details including comments &amp;amp;amp; replys.&amp;quot;&lt;br /&gt;
         echo -e &amp;quot;\t(Attachments of type text/plain and text/html.)&amp;quot;&lt;br /&gt;
         exit&lt;br /&gt;
 fi&lt;br /&gt;
 &lt;br /&gt;
 # show ticket header&lt;br /&gt;
 echo &amp;quot;###############################################&amp;quot;&lt;br /&gt;
 echo &amp;quot;###  RT3 Ticket Details for Ticket# ${1}  ###&amp;quot;&lt;br /&gt;
 echo &amp;quot;###############################################&amp;quot;&lt;br /&gt;
 ${RTPATH}/bin/rt show ticket/${1}&lt;br /&gt;
 &lt;br /&gt;
 # get ticket attachment number(s), if any&lt;br /&gt;
 ATTCH=&amp;quot;`${RTPATH}/bin/rt show ticket/${1}/attachments | grep &amp;#039;text/&amp;#039; | sed &amp;#039;s/(.*$//g;s/Attachments: //g;s/[ :]//g;s/$/,/g;/id.*/d;/^,/d;s/,$//g&amp;#039;`&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 # print attachement creation date &amp;amp;amp; contents, removing consecutive blank lines.&lt;br /&gt;
 for ATTMT in $ATTCH; do&lt;br /&gt;
         echo -e &amp;quot;\n======&amp;amp;gt; BEG Attachment# ${1}/${ATTMT} &amp;amp;lt;======&amp;quot;&lt;br /&gt;
         ${RTPATH}/bin/rt show ticket/${1}/attachments/${ATTMT} | \&lt;br /&gt;
                 sed &amp;#039;/^Transaction:/,/^Content:/{ /^Content:/,/^Transaction:/!d; };/^id:/,/^Creator:/d;/./,/^&amp;amp;amp;/!d&amp;#039;&lt;br /&gt;
 ### Another method of retrieving Attachments (slower) ###&lt;br /&gt;
 ##      ${RTPATH}/bin/rt show ticket/${1}/attachments/${ATTMT}/content&lt;br /&gt;
 ##      ${RTPATH}/bin/rt show ticket/${1}/attachments/${ATTMT} | \&lt;br /&gt;
         ##      sed -n &amp;#039;/^Created:.*$/,$p&amp;#039; | \&lt;br /&gt;
         ##      sed &amp;#039;/^Transaction:/,/^Content:/{ /^Content:/,/^Transaction:/!d; }&amp;#039;&lt;br /&gt;
         echo -e &amp;quot;\n======&amp;amp;gt; END Attachment# ${1}/${ATTMT} &amp;amp;lt;======&amp;quot;&lt;br /&gt;
 done&lt;br /&gt;
 echo -e &amp;quot;###  END TICKET ${1} DETAIL  ###\n&amp;quot;&lt;br /&gt;
 &lt;br /&gt;
 ## END ##&lt;br /&gt;
 &amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Produces output like the following.&amp;#039;&amp;#039;&amp;#039; &amp;#039;&amp;#039;&amp;#039;Note: the redundancy at the bottom came as a result of my playing with this early ticket.&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
  ###############################################&lt;br /&gt;
  ###  RT3 Ticket Details for Ticket# 37  ###&lt;br /&gt;
  ###############################################&lt;br /&gt;
  id: ticket/37&lt;br /&gt;
  Queue: MyQueue&lt;br /&gt;
  Owner: Patrick&lt;br /&gt;
  Creator: Patrick&lt;br /&gt;
  Subject: Beverly&amp;#039;s msword not printing.&lt;br /&gt;
  Status: open&lt;br /&gt;
  Priority: 5&lt;br /&gt;
  InitialPriority: 5&lt;br /&gt;
  FinalPriority: 10&lt;br /&gt;
  Requestors: Patrick@myemail.address&lt;br /&gt;
  Cc:&lt;br /&gt;
  AdminCc:&lt;br /&gt;
  Created: Wed Oct 08 13:32:45 2008&lt;br /&gt;
  Starts: Wed Oct 08 00:00:00 2008&lt;br /&gt;
  Started: Thu Oct 09 01:05:28 2008&lt;br /&gt;
  Due: Wed Oct 08 00:00:00 2008&lt;br /&gt;
  Resolved: Not set&lt;br /&gt;
  Told: Not set&lt;br /&gt;
  LastUpdated: Thu Oct 09 01:05:28 2008&lt;br /&gt;
  TimeEstimated: 0&lt;br /&gt;
  TimeWorked: 90 minutes&lt;br /&gt;
  TimeLeft: 0&lt;br /&gt;
  CF.{Cost of Materials}: 0.00&lt;br /&gt;
 &lt;br /&gt;
  ======&amp;amp;gt; BEG Attachment# 37/244 &amp;amp;lt;======&lt;br /&gt;
  Created: 2008-10-08 18:32:45&lt;br /&gt;
  Content: Beverly&amp;#039;s msword will only quickprint.  It crashes upon trying to print&lt;br /&gt;
           via any other method.&lt;br /&gt;
           -- Patrick&lt;br /&gt;
 &lt;br /&gt;
  ======&amp;amp;gt; END Attachment# 37/244 &amp;amp;lt;======&lt;br /&gt;
 &lt;br /&gt;
  ======&amp;amp;gt; BEG Attachment# 37/245 &amp;amp;lt;======&lt;br /&gt;
  Created: 2008-10-08 18:32:46&lt;br /&gt;
  Content:&lt;br /&gt;
           Greetings,&lt;br /&gt;
 &lt;br /&gt;
           This message has been automatically generated in response to the&lt;br /&gt;
           creation of a trouble ticket regarding:&lt;br /&gt;
           	&amp;quot;Beverly&amp;#039;s msword not printing.&amp;quot;,&lt;br /&gt;
           a summary of which appears below.&lt;br /&gt;
 &lt;br /&gt;
           There is no need to reply to this message right now.  Your ticket has been&lt;br /&gt;
           assigned an ID of [DTHH #37].&lt;br /&gt;
 &lt;br /&gt;
           Please include the string:&lt;br /&gt;
 &lt;br /&gt;
                    [DTHH #37]&lt;br /&gt;
 &lt;br /&gt;
           in the subject line of all future correspondence about this issue. To do so,&lt;br /&gt;
           you may reply to this message.&lt;br /&gt;
 &lt;br /&gt;
                                   Thank you,&lt;br /&gt;
                                   THHSupport@myrtserver&lt;br /&gt;
 &lt;br /&gt;
           -------------------------------------------------------------------------&lt;br /&gt;
           Beverly&amp;#039;s msword will only quickprint.  It crashes upon trying to print&lt;br /&gt;
           via any other method.&lt;br /&gt;
           -- Patrick&lt;br /&gt;
 &lt;br /&gt;
  ======&amp;amp;gt; END Attachment# 37/245 &amp;amp;lt;======&lt;br /&gt;
 &lt;br /&gt;
  ======&amp;amp;gt; BEG Attachment# 37/246 &amp;amp;lt;======&lt;br /&gt;
  Created: 2008-10-08 18:32:46&lt;br /&gt;
  Content:&lt;br /&gt;
           Wed Oct 08 13:32:45 2008: Request 37 was acted upon.&lt;br /&gt;
           Transaction: Ticket created by Patrick&lt;br /&gt;
                  Queue: MyQueue&lt;br /&gt;
                Subject: Beverly&amp;#039;s msword not printing.&lt;br /&gt;
                  Owner: Patrick&lt;br /&gt;
             Requestors: Patrick@myemail.address&lt;br /&gt;
                 Status: new&lt;br /&gt;
            Ticket &amp;amp;lt;URL: https://myrtserver:8443/rt/Ticket/Display.html?id=37 &amp;amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
           Beverly&amp;#039;s msword will only quickprint.  It crashes upon trying to print&lt;br /&gt;
           via any other method.&lt;br /&gt;
           -- Patrick&lt;br /&gt;
 &lt;br /&gt;
  ======&amp;amp;gt; END Attachment# 37/246 &amp;amp;lt;======&lt;br /&gt;
 &lt;br /&gt;
  ======&amp;amp;gt; BEG Attachment# 37/251 &amp;amp;lt;======&lt;br /&gt;
  Created: 2008-10-09 06:05:24&lt;br /&gt;
  Content: &amp;amp;lt;p&amp;amp;gt;Followed recommendations of microsoft. Problem only appears on Beverly&amp;#039;s user.&amp;amp;lt;/p&amp;amp;gt;&lt;br /&gt;
           &amp;amp;lt;p&amp;amp;gt;Re-installed msoffice. Applied mso97sp2b. Removed registry settings for user. Cleared temp directory.&lt;br /&gt;
 Problem still persists. Problem only appears in msword. msexcel and mspowerpoint both do not exhibit the problem.&lt;br /&gt;
 Will pursue with more research. Apparent option is to delete the user and create new user to resolve the problem.&lt;br /&gt;
 Will look for other options.&amp;amp;lt;br /&amp;amp;gt;&lt;br /&gt;
           -- Patrick&amp;amp;lt;/p&amp;amp;gt;&lt;br /&gt;
 &lt;br /&gt;
  ======&amp;amp;gt; END Attachment# 37/251 &amp;amp;lt;======&lt;br /&gt;
 &lt;br /&gt;
  ======&amp;amp;gt; BEG Attachment# 37/252 &amp;amp;lt;======&lt;br /&gt;
  Created: 2008-10-09 06:05:26&lt;br /&gt;
  Content:&lt;br /&gt;
           &amp;amp;lt;URL: https://myrtserver:8443/rt/Ticket/Display.html?id=37 &amp;amp;gt;&lt;br /&gt;
 &lt;br /&gt;
           Followed recommendations of microsoft. Problem only appears on Beverly&amp;#039;s&lt;br /&gt;
            user.&lt;br /&gt;
 &lt;br /&gt;
           Re-installed msoffice. Applied mso97sp2b. Removed registry settings for user.&lt;br /&gt;
           Cleared temp directory. Problem still persists. Problem only appears in msword.&lt;br /&gt;
           msexcel and mspowerpoint both do not exhibit the problem. Will pursue with more&lt;br /&gt;
           research. Apparent option is to delete the user and create new user to&lt;br /&gt;
           resolve the problem. Will look for other options.&lt;br /&gt;
           -- Patrick&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
  ======&amp;amp;gt; END Attachment# 37/252 &amp;amp;lt;======&lt;br /&gt;
 &lt;br /&gt;
  ======&amp;amp;gt; BEG Attachment# 37/253 &amp;amp;lt;======&lt;br /&gt;
  Created: 2008-10-09 06:05:27&lt;br /&gt;
  Content: Followed recommendations of microsoft. Problem only appears on Beverly&amp;#039;s&lt;br /&gt;
            user.&lt;br /&gt;
 &lt;br /&gt;
           Re-installed msoffice. Applied mso97sp2b. Removed registry settings for user.&lt;br /&gt;
           Cleared temp directory. Problem still persists. Problem only appears in msword.&lt;br /&gt;
           msexcel and mspowerpoint both do not exhibit the problem. Will pursue with more&lt;br /&gt;
           research. Apparent option is to delete the user and create new user to&lt;br /&gt;
           resolve the problem. Will look for other options.&lt;br /&gt;
           -- Patrick&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
  ======&amp;amp;gt; END Attachment# 37/253 &amp;amp;lt;======&lt;br /&gt;
 &lt;br /&gt;
  ======&amp;amp;gt; BEG Attachment# 37/254 &amp;amp;lt;======&lt;br /&gt;
  Created: 2008-10-09 06:05:27&lt;br /&gt;
  Content: Followed recommendations of microsoft. Problem only appears on Beverly&amp;#039;s&lt;br /&gt;
            user.&lt;br /&gt;
 &lt;br /&gt;
           Re-installed msoffice. Applied mso97sp2b. Removed registry settings for user.&lt;br /&gt;
           Cleared temp directory. Problem still persists. Problem only appears in msword.&lt;br /&gt;
           msexcel and mspowerpoint both do not exhibit the problem. Will pursue with more&lt;br /&gt;
           research. Apparent option is to delete the user and create new user to&lt;br /&gt;
           resolve the problem. Will look for other options.&lt;br /&gt;
           -- Patrick&lt;br /&gt;
 &lt;br /&gt;
 &lt;br /&gt;
  ======&amp;amp;gt; END Attachment# 37/254 &amp;amp;lt;======&lt;br /&gt;
  ###  END TICKET 37 DETAIL  ###&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>