| Conditions | 1 |
| Paths | 1 |
| Total Lines | 23 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 30 | public function __construct(EventManager $eventManager = null) |
||
| 31 | { |
||
| 32 | $this->issueType = 'Test'; |
||
| 33 | |||
| 34 | $this->settings = [ |
||
| 35 | // a valid Jira issue type |
||
| 36 | 'jiraType' => 'Task', |
||
| 37 | // any labels that you want that issue tagged with. space seperated string, or an array. |
||
| 38 | 'jiraLabels' => 'test-label', |
||
| 39 | // data used in this form. |
||
| 40 | 'formData' => [ |
||
| 41 | // define the fields here for the HtmlHelper::control() |
||
| 42 | 'fields' => [ |
||
| 43 | // this is really the only required field. |
||
| 44 | 'summary' => [ |
||
| 45 | 'type' => 'string', |
||
| 46 | 'required' => true |
||
| 47 | ] |
||
| 48 | ] |
||
| 49 | ] |
||
| 50 | ]; |
||
| 51 | |||
| 52 | parent::__construct($eventManager); |
||
| 53 | } |
||
| 55 |