NZTA\SDLT\IssueTracker\JIRA\JIRA::call
username, api_key, atlassian_instance, project_name are passed in with Injector:
``` SilverStripe\Core\Injector\Injector: NZTA\SDLT\IssueTracker\JIRA\JIRA: properties: username: '`JIRA_USERNAME`' api_key: '`JIRA_API_KEY`' atlassian_instance: '`JIRA_ATLASSIAN_INSTANCE`' ``` Set the above constants in .env
Signature
public function call(string
$endpoint,
[string
$data = '',
[string
$method = 'POST']] )
Parameters
$endpoint
— string- JIRA endpoint
$data
— string- JSON-encoded data
$method
— string- Which HTTP verb to use
Returns
- string