Conditions | 1 |
Paths | 1 |
Total Lines | 28 |
Code Lines | 13 |
Lines | 0 |
Ratio | 0 % |
Tests | 19 |
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 | 4 | 'jiraType' => 'Task', |
|
36 | // any labels that you want that issue tagged with. space seperated string, or an array. |
||
37 | 4 | 'jiraLabels' => 'test-label', |
|
38 | // data used in this form. |
||
39 | 4 | 'formData' => [ |
|
40 | // define the fields here for the HtmlHelper::control() |
||
41 | 4 | 'fields' => [ |
|
42 | // this is really the only required field. |
||
43 | 4 | 'summary' => [ |
|
44 | 4 | 'type' => 'string', |
|
45 | 4 | 'required' => true, |
|
46 | 4 | ], |
|
47 | // add more fields here, like description, etc. |
||
48 | 4 | 'details' => [ |
|
49 | 4 | 'type' => 'textarea', |
|
50 | 4 | 'required' => true, |
|
51 | 4 | ], |
|
52 | 4 | ], |
|
53 | 4 | ], |
|
54 | 4 | ]; |
|
55 | |||
56 | 4 | parent::__construct($eventManager); |
|
57 | } |
||
59 |