forked from FayP/JIRA-php
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'getCreateIssueMetadata'
- Loading branch information
Showing
2 changed files
with
150 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
<?php | ||
/** | ||
* TestLink Open Source Project - http://testlink.sourceforge.net/ | ||
* | ||
* @filesource getCreateIssueMetadata.test.class.php | ||
* @author Francisco Mancardi ([email protected]) | ||
* | ||
* @internal revisions | ||
* | ||
**/ | ||
require_once('../src/JiraApi/RestRequest.php'); | ||
require_once('../src/JiraApi/Jira.php'); | ||
|
||
$settings = array('host' => 'https://testlink.atlassian.net/rest/api/latest/', | ||
'username' => 'testlink.forum', 'password' => 'forum'); | ||
|
||
$api = new JiraApi\Jira($settings); | ||
|
||
/* | ||
$out = $api->getCreateIssueMetadata(); | ||
echo 'Test - Get Create Issue Metadata for all projects' . '<br>'; | ||
echo '<pre>'; | ||
var_dump($out); | ||
echo '</pre>'; | ||
*/ | ||
|
||
$tg = 'ZOFF'; | ||
$out = $api->getCreateIssueMetadata($tg); | ||
echo 'Test - Get Create Issue Metadata for project: ' . $tg . '<br>'; | ||
echo '<pre>'; | ||
var_dump($out); | ||
echo '</pre>'; | ||
|
||
/* | ||
$tg = 'ZOFF,SCRUM20NOV'; | ||
$out = $api->getCreateIssueMetadata($tg); | ||
echo 'Test - Get Create Issue Metadata for projects: ' . $tg . '<br>'; | ||
echo '<pre>'; | ||
var_dump($out); | ||
echo '</pre>'; | ||
$tg = 'ZOFF,SCRUM20NOV'; | ||
$out = $api->getCreateIssueFields($tg); | ||
echo 'Test - Get Create Issue Fields for project: ' . $tg . '<br>'; | ||
echo '<pre>'; | ||
var_dump($out); | ||
echo '</pre>'; | ||
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters