JIRA-php icon indicating copy to clipboard operation
JIRA-php copied to clipboard

How to use

Open vaclavgreif opened this issue 11 years ago • 1 comments

Hi, kinf of lost, could you please give me an example how to use your class to retrieve a list of projects?

Thanks

vaclavgreif avatar Sep 09 '13 09:09 vaclavgreif

Ok, I found out how to use, most of the functions work, but I have troubles to create new issue. This is my code:

[code]

'username', 'password' => 'pass', 'host' => 'jira.domain.com'); $issue = new Jira($config); // vytvoreni issue $new_issue = array( 'fields' => array( 'project' => array('key' => 'Test'), 'summary' => 'Test via REST', 'description' => 'Description of issue goes here.', 'issuetype' => array('name' => 'Bug') ) ); $data = json_encode($new_issue); var_dump($issue->createIssue($data)); [/code] This returns false. Anything I'm doing wrong?

vaclavgreif avatar Sep 09 '13 13:09 vaclavgreif