Implemented ability to refresh a JiraHTML project index. See JWL-5
Implemented ability to refresh a JiraHTML project index. See JWL-5

--- a/actions/urlrequest.action.php
+++ b/actions/urlrequest.action.php
@@ -21,6 +21,7 @@
 		$this->project = $request->getIssueProject();
 		$this->loadPluginConfig();
 		$this->project_config = $project_config;
+		$this->plugin_config = explode(",",$plugin_config);
 
 		switch ($event){
 		      case 'newissue':
@@ -50,6 +51,16 @@
 	  }
 
 
+
+	  /** Refresh a project's JIRA-HTML index page
+	  *
+	  */
+	  private function refreshIndex(){
+	      $url = $url = $this->config->projectserver . $this->project . $this->config->urlsuffix;
+	      $this->placeRequest($url);
+	  }
+
+
 	  /** Build an email notification specific to a new issue being raised
 	  *
 	  */
@@ -57,6 +68,11 @@
 		$issue = $this->request->getIssueKey();
 		$url = $this->config->projectserver . $issue . $this->config->urlsuffix;
 		$this->placeRequest($url);
+
+
+		if (in_array('refreshIndex',$this->plugin_config)){
+			$this->refreshIndex();
+		}
 	  }
 
 

--- a/config/config.example.php
+++ b/config/config.example.php
@@ -19,7 +19,7 @@
 	      'fireon' => 'newissue,updatedissue',
 	      'actions' => array(
 		  'email' => 'foo@example.com,bar@example.com',
-		  'urlrequest' => ''
+		  'urlrequest' => 'refreshIndex'
 	      ),
 	      'ProjectURLBase' => 'http://example.com/projects', // No trailing slash
 	      'ProjectURLSuffix' => '.html'