File tree Expand file tree Collapse file tree 3 files changed +65
-0
lines changed Expand file tree Collapse file tree 3 files changed +65
-0
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,9 @@ class IssueType implements \JsonSerializable
25
25
/** @var \JiraRestApi\Issue\IssueStatus[] */
26
26
public $ statuses ;
27
27
28
+ /** @var integer */
29
+ public $ avatarId ;
30
+
28
31
public function jsonSerialize ()
29
32
{
30
33
return array_filter (get_object_vars ($ this ));
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace JiraRestApi \IssueType ;
4
+
5
+ use JiraRestApi \JiraException ;
6
+ use JsonMapper_Exception ;
7
+
8
+ class IssueTypeService extends \JiraRestApi \JiraClient
9
+ {
10
+ private $ uri = '/issuetype ' ;
11
+
12
+ /**
13
+ * get all issuetypes.
14
+ *
15
+ * @throws JiraException
16
+ * @throws JsonMapper_Exception
17
+ *
18
+ * @return IssueType[] array of Project class
19
+ */
20
+ public function getAll ()
21
+ {
22
+ $ ret = $ this ->exec ($ this ->uri .'/ ' , null );
23
+ $ this ->log ->info ("Result= \n" .$ ret );
24
+
25
+ return $ this ->json_mapper ->mapArray (
26
+ json_decode ($ ret , false ),
27
+ new \ArrayObject (),
28
+ \JiraRestApi \Issue \IssueType::class
29
+ );
30
+ }
31
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace JiraRestApi \StatusCategory ;
4
+
5
+ use JiraRestApi \JiraException ;
6
+ use JsonMapper_Exception ;
7
+
8
+ class StatusCategoryService extends \JiraRestApi \JiraClient
9
+ {
10
+ private $ uri = '/statuscategory ' ;
11
+
12
+ /**
13
+ * get all statuscategorys.
14
+ *
15
+ * @throws JiraException
16
+ * @throws JsonMapper_Exception
17
+ *
18
+ * @return Statuscategory[] array of Project class
19
+ */
20
+ public function getAll ()
21
+ {
22
+ $ ret = $ this ->exec ($ this ->uri .'/ ' , null );
23
+ $ this ->log ->info ("Result= \n" .$ ret );
24
+
25
+ return $ this ->json_mapper ->mapArray (
26
+ json_decode ($ ret , false ),
27
+ new \ArrayObject (),
28
+ \JiraRestApi \Issue \Statuscategory::class
29
+ );
30
+ }
31
+ }
You can’t perform that action at this time.
0 commit comments