Extension:GbangaLabsPivotalTrackerTag

What can this extension do?
Integrates stories that you have running in Pivotal Tracker into your wiki, always up to date.

Usage
Adds a Manual:Tag_extensions to the MediaWiki to embed Pivotal Tracker stories..

This is especially useful when you work with Scrum and don't want to have knowledge residing in volatile stories on an external server.

Download instructions
Please download the code found at Gbanga labs and place it in. Note: $IP stands for the root directory of your MediaWiki installation, the same directory that holds LocalSettings.php. Also download the sources of the CSS style sheet that is located at the same page.

Installation
To install this extension, add the following to LocalSettings.php:

Style
You might want to add the content of the style sheet  to your main.css file or to MediaWiki:Common.css.

Usage
The empty tag element contains two attributes: id to specify the story and p to denote the corresponding project:



Tag elements with content create a link to the pivotal story without rendering the caption of the link. Instead the content is used:

This is the caption for the link

User rights
See Gbanga labs page.

Code
Download from the Gbanga labs page.

Modifications
The URL for the API Call has changed. In order to get GbangaLabsPivotalTrackerTag properly working, the following changes must be made:

curl_setopt($piTrCurlHandle, CURLOPT_URL, "https://www.pivotaltracker.com/services/v3/projects/$project/stories/$story"); --- curl_setopt($piTrCurlHandle, CURLOPT_URL, "https://www.pivotaltracker.com/services/v3/tokens/active");
 * 1) curl_setopt($piTrCurlHandle, CURLOPT_URL, "http://www.pivotaltracker.com/services/v2/projects/$project/stories/$story");
 * 1) curl_setopt($piTrCurlHandle, CURLOPT_URL, "https://www.pivotaltracker.com/services/tokens/active");

And, to add more story information:

return array(	  'description' => pivotalTrackerFindInXMLArray($values, 'DESCRIPTION'),	   'title' => pivotalTrackerFindInXMLArray($values, 'NAME'),	   'current_state' => pivotalTrackerFindInXMLArray($values, 'CURRENT_STATE'),           'url' => pivotalTrackerFindInXMLArray($values, 'URL'),	   'labels' => pivotalTrackerFindInXMLArray($values, 'LABELS'),	   'story_type' => pivotalTrackerFindInXMLArray($values, 'STORY_TYPE'),	   'created_at' => pivotalTrackerFindInXMLArray($values, 'CREATED_AT'),	   'requestedBy' => pivotalTrackerFindInXMLArray($values, 'REQUESTED_BY'),	   'ownedBy' => pivotalTrackerFindInXMLArray($values, 'OWNED_BY'),	);