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