<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Ashish's Tech Blog &#187; Project Management</title>
	<atom:link href="http://www.ashishpaliwal.com/blog/tag/project-management/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ashishpaliwal.com/blog</link>
	<description>From Programmer, For Programmers</description>
	<lastBuildDate>Tue, 17 Aug 2010 12:04:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Updating Google Calendar with MS Project Tasks</title>
		<link>http://www.ashishpaliwal.com/blog/2008/10/updating-google-calendar-with-ms-project-tasks/</link>
		<comments>http://www.ashishpaliwal.com/blog/2008/10/updating-google-calendar-with-ms-project-tasks/#comments</comments>
		<pubDate>Mon, 13 Oct 2008 13:52:19 +0000</pubDate>
		<dc:creator>ashish</dc:creator>
				<category><![CDATA[Application Programming]]></category>
		<category><![CDATA[Apache POI]]></category>
		<category><![CDATA[GData API]]></category>
		<category><![CDATA[Google Calendar]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[Microsoft Project]]></category>
		<category><![CDATA[MPXJ]]></category>
		<category><![CDATA[Project Management]]></category>
		<category><![CDATA[Task Tracking]]></category>

		<guid isPermaLink="false">http://www.ashishpaliwal.com/blog/?p=67</guid>
		<description><![CDATA[I am back, as promised. Please read my earlier post Processing Microsoft Project File in Java using MPXJ. In this post we shall take an mpp and update the Google Calendar with the task details. The question is why would anyone do that?  Lets cook the story. A small team is working and the poor Project [...]]]></description>
			<content:encoded><![CDATA[<p>I am back, as promised. Please read my earlier post <a rel="bookmark" href="http://www.ashishpaliwal.com/blog/?p=58" target="_blank">Processing Microsoft Project File in Java using MPXJ</a>.</p>
<p>In this post we shall take an mpp and update the Google Calendar with the task details. The question is why would anyone do that? </p>
<p>Lets cook the story. A small team is working and the poor Project Manager share the Schedule with the team. The team is so busy coding that they forget to look at the dates, and the tasks they must be starting on. The poor Project Manager himself loose track unless he keeps MS Project Open on his desktop :-( A pretty common situation <img src='http://www.ashishpaliwal.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  </p>
<p>Have faced this situation and decided to organize myself and this post is outcome of that. The driving force was "Out of sight, is out of mind". So my assumption was if the team has a visual of the task dates, the chances of task slippage shall reduce a lot. </p>
<p>In this post, have built upon the my previous post to create an MPP parsing function. Have tried to keep the code in simplest form, so that it can customized later to specific needs. Have created a sample Schedule for this activity and used it for the implementation. Here is how it looks.</p>
<p> </p>
<div id="attachment_68" class="wp-caption aligncenter" style="width: 310px"><a href="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/mpp.png"><img class="size-medium wp-image-68" title="mpp" src="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/mpp-300x39.png" alt="Google Calendar updater Project Schedule" width="300" height="39" /></a><p class="wp-caption-text">Google Calendar updater Project Schedule</p></div>
<p>The schdule is simple, some date, and tasks with dependencies. The concept shall work for any number of tasks.</p>
<p>Following are the steps that we need to perform:</p>
<ol>
<li>Parse the mpp file</li>
<li>Create a Calendar Service (Lets assume that the Calendar is already there, though it is possible to <span><span>programmatically</span></span> create the same)</li>
<li>Get All tasks from MPP, and create Calendar Entries in Google Calendar</li>
</ol>
<div><strong>The Code</strong></div>
<div>
<div id="attachment_69" class="wp-caption aligncenter" style="width: 510px"><a href="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/gcalupdatecode.png"><img class="size-full wp-image-69" title="Google Calendar Entry Creation Code" src="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/gcalupdatecode.png" alt="Google Calendar Entry Creation Code" width="500" height="480" /></a><p class="wp-caption-text">Google Calendar Entry Creation Code</p></div>
<p>The implementation is fairly simple. We have 3 functions:</p>
<ul>
<li>translateTaskToCalendarEventEntry() - Converts an Task into CalendarEventEntry, which can be added to Google Calendar</li>
<li>updateCalendar() - Takes input of all the Tasks from MPP, translates into CalendarEventEntry (using function translateTaskToCalendarEventEntry) and update the Calendar</li>
<li>updateGoogleCalendarWithMPP() - Parses the MPP using the util function from my previous post, and calls the API above to update the Calendar.</li>
</ul>
<p>Google Calendar API usage is described in details on Google's pages, hence won't discuss here.<br />
To use it for yourself, replace User Name and Password at line#70, with your User <span><span>Credentials</span></span>. Repace the URL at Line# 71 to point to your calendar.<br />
After running the program, this is how my Calendar looked like </p>
<dl id="attachment_72" class="wp-caption aligncenter" style="width: 510px;">
<dt class="wp-caption-dt"><a href="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/gcalview.png"><img class="size-full wp-image-72" title="Google Calendar View" src="http://www.ashishpaliwal.com/blog/wp-content/uploads/2008/10/gcalview.png" alt="Google Calendar View" width="500" height="232" /></a></dt>
<dd class="wp-caption-dd">Google Calendar View</dd>
</dl>
<p>A simple way to keep track of Tasks.<br />
 </p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.ashishpaliwal.com/blog/2008/10/updating-google-calendar-with-ms-project-tasks/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
