| Code: |
|
function getBugStatus($id) { $myFile = "jir.log"; $fh = fopen($myFile, 'w'); if (!$this->isConnected()) return false; $status = false; // 20070818 - francisco...@gruppotesi.com // $query = "SELECT issuestatus FROM jiraissue WHERE pkey='$id'"; $query = "SELECT s.pname as issuestatus " . "FROM issuestatus s, jiraissue i " . "WHERE i.pkey='$id' AND i.issuestatus = s.ID"; fwrite($fh, $query); $result = $this->dbConnection->exec_query($query); fwrite($fh,$result); if ($result) { $status = $this->dbConnection->fetch_array($result); if ($status) { $status = $status['issuestatus']; } else $status = null; } fwrite($fh, "\n"); fwrite($fh, "Status: "); fwrite($fh,$status); fclose($fh); return $status; } |
| Code: |
|
SELECT s.pname as issuestatus " . "FROM issuestatus s, jiraissue i " . "WHERE i.pkey='$id' AND i.issuestatus = s.ID |
| Code: |
| $result = $this->dbConnection->exec_query($query); |
| Code: |
| $status = $this->dbConnection->fetch_array($result); |
| Code: |
| $status = $status['issuestatus']; |
--
You received this message because you are subscribed to the Google Groups "testlink-dev" group.
To post to this group, send email to testli...@googlegroups.com.
To unsubscribe from this group, send email to testlink-dev...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/testlink-dev?hl=en.