File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change @@ -91,6 +91,7 @@ $iss = new IssueService(new ArrayConfiguration(
91
91
### Project
92
92
- [ Get Project Info] ( #get-project-info )
93
93
- [ Get All Project list] ( #get-all-project-list )
94
+ - [ Get Project Type] ( #get-project-type )
94
95
95
96
### Custom Field
96
97
- [ Get All Field list] ( #get-all-field-list )
@@ -160,6 +161,36 @@ try {
160
161
161
162
```
162
163
164
+ #### Get Project type
165
+
166
+ ``` php
167
+ <?php
168
+ require 'vendor/autoload.php';
169
+
170
+ use JiraRestApi\Project\ProjectService;
171
+ use JiraRestApi\Project\ProjectType;
172
+ use JiraRestApi\JiraException;
173
+
174
+ try {
175
+ $proj = new ProjectService();
176
+
177
+ // get all project type
178
+ $prjtyps = $proj->getProjectTypes();
179
+
180
+ foreach ($prjtyps as $pt) {
181
+ var_dump($pt);
182
+ }
183
+
184
+ // get specific project type.
185
+ $pt = $proj->getProjectType('software');
186
+ var_dump($pt);
187
+
188
+ } catch (JiraException $e) {
189
+ print("Error Occured! " . $e->getMessage());
190
+ }
191
+
192
+ ```
193
+
163
194
#### Get All Field List
164
195
165
196
``` php
You can’t perform that action at this time.
0 commit comments