Using RSS feeds to notify tickets and tasks – future of intranet messaging

Recently I had to work on some new ideas, it was to create a system for task management, ticket creation and accountability. Though they all sound the same and nothing new to the IT field, but my job was to simplify this and make it effective for the novice. And the system i designed just proves you can do this cost effectively. 

I solely support the GPL software because i owe them a lot for career development. For ticket creation, i had in mind and that was the OneorZero- Task Management and Helpdesk Solutions- http://www.oneorzero.com/ I used their free version. Though there was very limited documentation, after playing around with the settings i figured it out. The way for me was there is only user group and one task manager or admin ie me. The rest are all users. Because I dint want users to edit their original task or ticket. Because not able edit is the whole point of accountability. So the way I used was all users belongs to one user group. Doing so by creating new tickets they are all circulated to all the users and every one sees them. Very Transparent.

Secondly I need an RSS creator, for this i went to sourceforge – http://sourceforge.net/.  This is the one place for GPL software. Here i used the RSS creator – http://sourceforge.net/projects/rssfeedcreator/ . The coding in this software is bit vague, especially the code for connectivity to the database. But once you figure that out it is one of the easiest rss creator i have seen. 

Third software was the yahoo widgets- Newsstand by WidgetWorld – V 1.25 – http://www.widgetworld.com/ this is a cool widget for number of reason, first its a multi feed, means you can have more than one feed showing up, which isn’t really necessary for my work but if i need to extend my possibilities i need that. second, it auto refreshes feeds every 5, 10, 15 Min’s and so on. And the cool interface to display if a new ticket has been issued and also difference in read and unread feeds…see i told you its cool..

The fourth task was to automatically update the changes into the feed, typically this task needs to be done at the oneorzero level, when a new ticket is created update the feed.xml file too. but seeing the oneorzero’s codes i dint dare to attempt to that :)) . So i went for another automation software called autoscript by autoit – http://www.autoitscript.com/ . Here i borrowed a script from one of the programmers to auto refresh a IE browser every ‘n’ minutes. So if we refresh official_demo.php which is the feed creator file, it will automatically update the XML feed file called feed.xml

Since i finalized on the programs, now i will explain briefly how they work.. oneorzero is used for ticket creation, feed creator is used for pulling those tickets from the system and create a rss feed, and autoit script to auto refresh the XML file and newsstand is used for displaying those feeds any number of system (they need to be individually installed in all PC’s).

Once you have downloaded and set the oneorzero , there needs some changes in the feed creator to effectively pick these tickets, to create feeds. Download the feed creator and make changes in their official_demo.php file 

<?php 
include(“include/feedcreator.class.php”);
$rss = new UniversalFeedCreator();
$rss->useCached();
$rss->title = “Task Management”;
$rss->description = “task management”;
$rss->link = “http://localhost/helpdesk/news”;
$rss->syndicationURL = “http://localhost”.$PHP_SELF;
$image = new FeedImage();
$image->title = “”;
$image->url = “”;
$image->link = “”;
$image->description = “”;
$rss->image = $image;

// get your news items from somewhere, e.g. your database:
$connection = mysql_connect(“localhost”, “root”, “”);
$db_selected= mysql_select_db(“DBNAME”, $connection);
$res = mysql_query(“SELECT * FROM tickets ORDER BY id DESC”);
while ($data = mysql_fetch_object($res)) {
    $item = new FeedItem();
    $item->title = $data->short;
    $link1 = “http://localhost/helpdesk/index.php?t=tinf&id=”;
    $link2 = $data->id;
    $item->link =$link1.”.$link2;
    $item->description = $data->description;
    $item->user = $data->user;
$item->date = $data->create_date;
    $item->source = “http://localhost/helpdesk/index.php”;
    $item->author = “Sarath”;
    $rss->addItem($item);
}
$rss->saveFeed(“RSS1.0”, “news/feed.xml”);

In the newsstand give the appropriate feed link like – http://localhost/helpdesk/news/feed.xml

To refresh the IE browser so it will automatically update the xml feed file, i used the following script, which needs to be compiled using AUTOIT software..

#include <IE.au3>
$oIE = _IECreate (“localhost/helpdesk/official_demo.php”)
$random = Random(10000, 200000, 1)
while 1
_IEAction ($oIE, “refresh”)
_IELoadWait ($oIE)
If _IELinkClickByText ($oIE, “accept”) < 0 Then 
    sleep(2000) 
    _IELinkClickByText($oIE, “accept”) 
Else
    sleep (2000)
EndIf
WEnd

You need to compile this in auto it software which is free to download.

Now whenever a new ticket is created by the user, it will be automatically refreshed in the feed.xml and then it will automatically displayed in the newsstand. I think this will be the future and much expanded use of RSS which is currently done primarily for news update. This could be the next EMAIL

3 Comments

  1. I discovered your homepage by coincidence.
    Very interesting posts and well written.
    I will put your site on my blogroll.
    🙂

  2. Thanks for the marvelous posting! I certainly enjoyed reading it,
    you may be a great author. I will be sure to bookmark your blog and will eventually come back down the road.
    I want to encourage you to definitely continue your great job,
    have a nice holiday weekend!

  3. whoah this weblog is fantastic i really like studying your articles.
    Keep up the good work! You understand, many people
    are hunting around for this info, you can aid them greatly.

Comments are closed