PageRenderTime 69ms CodeModel.GetById 32ms RepoModel.GetById 0ms app.codeStats 1ms

/profiles/metrics/modules/jira_api/SoapClientGenerated.php

https://bitbucket.org/lakshminp/metrics
PHP | 1838 lines | 1059 code | 115 blank | 664 comment | 0 complexity | bb00b06e92e529eaa73b6653c30afea3 MD5 | raw file
Possible License(s): GPL-2.0, AGPL-1.0, LGPL-2.1

Large files files are truncated, but you can click here to view the full file

  1. <?php
  2. abstract class Jira_SoapClientGenerated extends Jira_SoapClientAbstract
  3. {
  4. public $_namespace = false;
  5. public $_arrayOfObjects = array(
  6. 'ArrayOf_tns1_RemoteUser' => 'Jira_User',
  7. 'ArrayOf_tns1_RemoteComponent' => 'Jira_Component',
  8. 'ArrayOf_tns1_RemoteVersion' => 'Jira_Version',
  9. 'ArrayOf_tns1_RemoteCustomFieldValue' => 'Jira_CustomFieldValue',
  10. 'ArrayOf_tns1_RemoteNamedObject' => 'Jira_NamedObject',
  11. 'ArrayOf_tns1_RemoteIssueType' => 'Jira_IssueType',
  12. 'ArrayOf_tns1_RemoteEntity' => 'Jira_Entity',
  13. 'ArrayOf_tns1_RemotePermissionMapping' => 'Jira_PermissionMapping',
  14. 'ArrayOf_tns1_RemotePriority' => 'Jira_Priority',
  15. 'ArrayOf_tns1_RemoteResolution' => 'Jira_Resolution',
  16. 'ArrayOf_tns1_RemoteStatus' => 'Jira_Status',
  17. 'ArrayOf_tns1_RemoteProjectRole' => 'Jira_ProjectRole',
  18. 'ArrayOf_tns1_RemoteRoleActor' => 'Jira_RoleActor',
  19. 'ArrayOf_tns1_RemoteScheme' => 'Jira_Scheme',
  20. 'ArrayOf_tns1_RemoteField' => 'Jira_Field',
  21. 'ArrayOf_tns1_RemoteComment' => 'Jira_Comment',
  22. 'ArrayOf_tns1_RemoteFilter' => 'Jira_Filter',
  23. 'ArrayOf_tns1_RemoteFieldValue' => 'Jira_FieldValue',
  24. 'ArrayOf_tns1_RemoteSecurityLevel' => 'Jira_SecurityLevel',
  25. 'ArrayOf_tns1_RemoteAvatar' => 'Jira_Avatar',
  26. 'ArrayOf_tns1_RemotePermissionScheme' => 'Jira_PermissionScheme',
  27. 'ArrayOf_tns1_RemotePermission' => 'Jira_Permission',
  28. 'ArrayOf_tns1_RemoteAttachment' => 'Jira_Attachment',
  29. 'ArrayOf_tns1_RemoteWorklog' => 'Jira_Worklog',
  30. 'ArrayOf_tns1_RemoteIssue' => 'Jira_Issue',
  31. 'ArrayOf_tns1_RemoteProject' => 'Jira_Project'
  32. );
  33. public $_bigTypeMap = array(
  34. 'Jira_Comment' => array(
  35. 'author' => 'string',
  36. 'body' => 'string',
  37. 'created' => 'dateTime',
  38. 'groupLevel' => 'string',
  39. 'id' => 'string',
  40. 'roleLevel' => 'string',
  41. 'updateAuthor' => 'string',
  42. 'updated' => 'dateTime'
  43. ),
  44. 'Jira_TimeInfo' => array(
  45. 'serverTime' => 'string',
  46. 'timeZoneId' => 'string'
  47. ),
  48. 'Jira_ServerInfo' => array(
  49. 'baseUrl' => 'string',
  50. 'buildDate' => 'dateTime',
  51. 'buildNumber' => 'string',
  52. 'edition' => 'string',
  53. 'serverTime' => 'Jira_TimeInfo',
  54. 'version' => 'string'
  55. ),
  56. 'Jira_User' => array(
  57. 'email' => 'string',
  58. 'fullname' => 'string',
  59. 'name' => 'string'
  60. ),
  61. 'Jira_Group' => array(
  62. 'name' => 'string',
  63. 'users' => 'ArrayOf_tns1_RemoteUser'
  64. ),
  65. 'Jira_AbstractEntity' => array('id' => 'string'),
  66. 'Jira_AbstractNamedEntity' => array('name' => 'string'),
  67. 'Jira_Version' => array(
  68. 'archived' => 'boolean',
  69. 'releaseDate' => 'dateTime',
  70. 'released' => 'boolean',
  71. 'sequence' => 'long'
  72. ),
  73. 'Jira_CustomFieldValue' => array(
  74. 'customfieldId' => 'string',
  75. 'key' => 'string',
  76. 'values' => 'ArrayOf_xsd_string'
  77. ),
  78. 'Jira_Issue' => array(
  79. 'affectsVersions' => 'ArrayOf_tns1_RemoteVersion',
  80. 'assignee' => 'string',
  81. 'attachmentNames' => 'ArrayOf_xsd_string',
  82. 'components' => 'ArrayOf_tns1_RemoteComponent',
  83. 'created' => 'dateTime',
  84. 'customFieldValues' => 'ArrayOf_tns1_RemoteCustomFieldValue',
  85. 'description' => 'string',
  86. 'duedate' => 'dateTime',
  87. 'environment' => 'string',
  88. 'fixVersions' => 'ArrayOf_tns1_RemoteVersion',
  89. 'key' => 'string',
  90. 'priority' => 'string',
  91. 'project' => 'string',
  92. 'reporter' => 'string',
  93. 'resolution' => 'string',
  94. 'status' => 'string',
  95. 'summary' => 'string',
  96. 'type' => 'string',
  97. 'updated' => 'dateTime',
  98. 'votes' => 'long'
  99. ),
  100. 'Jira_AbstractConstant' => array(
  101. 'description' => 'string',
  102. 'icon' => 'string'
  103. ),
  104. 'Jira_IssueType' => array('subTask' => 'boolean'),
  105. 'Jira_Configuration' => array(
  106. 'allowAttachments' => 'boolean',
  107. 'allowExternalUserManagment' => 'boolean',
  108. 'allowIssueLinking' => 'boolean',
  109. 'allowSubTasks' => 'boolean',
  110. 'allowTimeTracking' => 'boolean',
  111. 'allowUnassignedIssues' => 'boolean',
  112. 'allowVoting' => 'boolean',
  113. 'allowWatching' => 'boolean',
  114. 'timeTrackingDaysPerWeek' => 'int',
  115. 'timeTrackingHoursPerDay' => 'int'
  116. ),
  117. 'Jira_Scheme' => array(
  118. 'description' => 'string',
  119. 'id' => 'long',
  120. 'name' => 'string',
  121. 'type' => 'string'
  122. ),
  123. 'Jira_Permission' => array(
  124. 'name' => 'string',
  125. 'permission' => 'long'
  126. ),
  127. 'Jira_PermissionMapping' => array(
  128. 'permission' => 'Jira_Permission',
  129. 'remoteEntities' => 'ArrayOf_tns1_RemoteEntity'
  130. ),
  131. 'Jira_PermissionScheme' => array('permissionMappings' => 'ArrayOf_tns1_RemotePermissionMapping'),
  132. 'Jira_Project' => array(
  133. 'description' => 'string',
  134. 'issueSecurityScheme' => 'Jira_Scheme',
  135. 'key' => 'string',
  136. 'lead' => 'string',
  137. 'notificationScheme' => 'Jira_Scheme',
  138. 'permissionScheme' => 'Jira_PermissionScheme',
  139. 'projectUrl' => 'string',
  140. 'url' => 'string'
  141. ),
  142. 'Jira_Priority' => array('color' => 'string'),
  143. 'Jira_ProjectRole' => array(
  144. 'description' => 'string',
  145. 'id' => 'long',
  146. 'name' => 'string'
  147. ),
  148. 'Jira_RoleActor' => array(
  149. 'descriptor' => 'string',
  150. 'parameter' => 'string',
  151. 'projectRole' => 'Jira_ProjectRole',
  152. 'type' => 'string',
  153. 'users' => 'ArrayOf_tns1_RemoteUser'
  154. ),
  155. 'Jira_RoleActors' => array(
  156. 'projectRole' => 'Jira_ProjectRole',
  157. 'roleActors' => 'ArrayOf_tns1_RemoteRoleActor',
  158. 'users' => 'ArrayOf_tns1_RemoteUser'
  159. ),
  160. 'Jira_ProjectRoleActors' => array('project' => 'Jira_Project'),
  161. 'Jira_Filter' => array(
  162. 'author' => 'string',
  163. 'description' => 'string',
  164. 'project' => 'string',
  165. 'xml' => 'string'
  166. ),
  167. 'Jira_FieldValue' => array(
  168. 'id' => 'string',
  169. 'values' => 'ArrayOf_xsd_string'
  170. ),
  171. 'Jira_SecurityLevel' => array('description' => 'string'),
  172. 'Jira_Avatar' => array(
  173. 'base64Data' => 'string',
  174. 'contentType' => 'string',
  175. 'id' => 'long',
  176. 'owner' => 'string',
  177. 'system' => 'boolean',
  178. 'type' => 'string'
  179. ),
  180. 'Jira_Attachment' => array(
  181. 'author' => 'string',
  182. 'created' => 'dateTime',
  183. 'filename' => 'string',
  184. 'filesize' => 'long',
  185. 'mimetype' => 'string'
  186. ),
  187. 'Jira_Worklog' => array(
  188. 'author' => 'string',
  189. 'comment' => 'string',
  190. 'created' => 'dateTime',
  191. 'groupLevel' => 'string',
  192. 'id' => 'string',
  193. 'roleLevelId' => 'string',
  194. 'startDate' => 'dateTime',
  195. 'timeSpent' => 'string',
  196. 'timeSpentInSeconds' => 'long',
  197. 'updateAuthor' => 'string',
  198. 'updated' => 'dateTime'
  199. )
  200. );
  201. /**
  202. * @param long $id
  203. * @return Jira_Comment
  204. */
  205. public function getComment($id)
  206. {
  207. try {
  208. $result = parent::getComment($this->getToken(),$id);
  209. $result = $this->_objectReturn($result,"Jira_Comment"); return $result;
  210. } catch (Exception $e) {
  211. echo "Caught exception: ", print_r($e->getMessage(),true); }
  212. }
  213. /**
  214. * Returns information about the server JIRA is running on including build number
  215. * and base URL.
  216. *
  217. * @return Jira_ServerInfo
  218. */
  219. public function getServerInfo()
  220. {
  221. try {
  222. $result = parent::getServerInfo($this->getToken());
  223. $result = $this->_objectReturn($result,"Jira_ServerInfo"); return $result;
  224. } catch (Exception $e) {
  225. echo "Caught exception: ", print_r($e->getMessage(),true); }
  226. }
  227. /**
  228. * Creates a group with the given name optionally adding the given user to it.
  229. *
  230. * @param string $groupName - the name of the group to create.
  231. * @param Jira_User $firstUser - the user to add to the group (if null, no user
  232. * will be added).
  233. * @return Jira_Group
  234. */
  235. public function createGroup($groupName, Jira_User $firstUser)
  236. {
  237. $firstUser = $this->_putObject($firstUser,"Jira_User");
  238. try {
  239. $result = parent::createGroup($this->getToken(),$groupName,$firstUser);
  240. $result = $this->_objectReturn($result,"Jira_Group"); return $result;
  241. } catch (Exception $e) {
  242. echo "Caught exception: ", print_r($e->getMessage(),true); }
  243. }
  244. /**
  245. * Find the group with the specified name in JIRA.
  246. *
  247. * @param string $groupName - the name of the group to find.
  248. * @return Jira_Group
  249. */
  250. public function getGroup($groupName)
  251. {
  252. try {
  253. $result = parent::getGroup($this->getToken(),$groupName);
  254. $result = $this->_objectReturn($result,"Jira_Group"); return $result;
  255. } catch (Exception $e) {
  256. echo "Caught exception: ", print_r($e->getMessage(),true); }
  257. }
  258. /**
  259. * This will authenticate the user in JIRA and returned a authentication token that
  260. * can then be used on all other SOAP methods.
  261. *
  262. * @param string $username - the JIRA user name to authenticate
  263. * @param string $password - the password of the JIRA user
  264. * @return string
  265. */
  266. public function login($username, $password)
  267. {
  268. try {
  269. $result = parent::login($username,$password); return $result;
  270. } catch (Exception $e) {
  271. // echo "Caught exception: ", print_r($e->getMessage(),true);
  272. }
  273. }
  274. /**
  275. * Returns information about a user defined to JIRA.
  276. *
  277. * @param string $username - the user name to look up
  278. * @return Jira_User
  279. */
  280. public function getUser($username)
  281. {
  282. try {
  283. $result = parent::getUser($this->getToken(),$username);
  284. $result = $this->_objectReturn($result,"Jira_User"); return $result;
  285. } catch (Exception $e) {
  286. echo "Caught exception: ", print_r($e->getMessage(),true); }
  287. }
  288. /**
  289. * Returns an array of all the components for the specified project key.
  290. *
  291. * @param string $projectKey - the key of the requested project
  292. * @return Jira_Component[]
  293. */
  294. public function getComponents($projectKey)
  295. {
  296. try {
  297. $result = parent::getComponents($this->getToken(),$projectKey);
  298. $result = $this->_objectArrayReturn($result,"Jira_Component"); return $result;
  299. } catch (Exception $e) {
  300. echo "Caught exception: ", print_r($e->getMessage(),true); }
  301. }
  302. /**
  303. * Creates a user in JIRA with the specified user details.
  304. *
  305. * @param string $username - the user name to create
  306. * @param string $password - the password for the new user
  307. * @param string $fullName - the full name of the new user
  308. * @param string $email - the email of the new user
  309. * @return Jira_User
  310. */
  311. public function createUser($username, $password, $fullName, $email)
  312. {
  313. try {
  314. $result = parent::createUser($this->getToken(),$username,$password,$fullName,$email);
  315. $result = $this->_objectReturn($result,"Jira_User"); return $result;
  316. } catch (Exception $e) {
  317. echo "Caught exception: ", print_r($e->getMessage(),true); }
  318. }
  319. /**
  320. * @param string $issueKey
  321. * @return Jira_Issue
  322. */
  323. public function getIssue($issueKey)
  324. {
  325. try {
  326. $result = parent::getIssue($this->getToken(),$issueKey);
  327. $result = $this->_objectReturn($result,"Jira_Issue"); return $result;
  328. } catch (Exception $e) {
  329. echo "Caught exception: ", print_r($e->getMessage(),true); }
  330. }
  331. /**
  332. * @param Jira_Issue $rIssue
  333. * @return Jira_Issue
  334. */
  335. public function createIssue(Jira_Issue $rIssue)
  336. {
  337. $rIssue = $this->_putObject($rIssue,"Jira_Issue");
  338. try {
  339. $result = parent::createIssue($this->getToken(),$rIssue);
  340. $result = $this->_objectReturn($result,"Jira_Issue"); return $result;
  341. } catch (Exception $e) {
  342. echo "Caught exception: ", print_r($e->getMessage(),true); }
  343. }
  344. /**
  345. * @param string $issueKey
  346. * @return Jira_NamedObject[]
  347. */
  348. public function getAvailableActions($issueKey)
  349. {
  350. try {
  351. $result = parent::getAvailableActions($this->getToken(),$issueKey);
  352. $result = $this->_objectArrayReturn($result,"Jira_NamedObject"); return $result;
  353. } catch (Exception $e) {
  354. echo "Caught exception: ", print_r($e->getMessage(),true); }
  355. }
  356. /**
  357. * Returns an array of all the sub task issue types in JIRA.
  358. *
  359. * @return Jira_IssueType[]
  360. */
  361. public function getSubTaskIssueTypes()
  362. {
  363. try {
  364. $result = parent::getSubTaskIssueTypes($this->getToken());
  365. $result = $this->_objectArrayReturn($result,"Jira_IssueType"); return $result;
  366. } catch (Exception $e) {
  367. echo "Caught exception: ", print_r($e->getMessage(),true); }
  368. }
  369. /**
  370. * Returns information about the current configuration of JIRA.
  371. *
  372. * @return Jira_Configuration
  373. */
  374. public function getConfiguration()
  375. {
  376. try {
  377. $result = parent::getConfiguration($this->getToken());
  378. $result = $this->_objectReturn($result,"Jira_Configuration"); return $result;
  379. } catch (Exception $e) {
  380. echo "Caught exception: ", print_r($e->getMessage(),true); }
  381. }
  382. /**
  383. * @param string $key
  384. * @param string $name
  385. * @param string $description
  386. * @param string $url
  387. * @param string $lead
  388. * @param Jira_PermissionScheme $permissionScheme
  389. * @param Jira_Scheme $notificationScheme
  390. * @param Jira_Scheme $issueSecurityScheme
  391. * @return Jira_Project
  392. */
  393. public function createProject($key, $name, $description, $url, $lead, Jira_PermissionScheme $permissionScheme, Jira_Scheme $notificationScheme, Jira_Scheme $issueSecurityScheme)
  394. {
  395. $issueSecurityScheme = $this->_putObject($issueSecurityScheme,"Jira_Scheme");
  396. try {
  397. $result = parent::createProject($this->getToken(),$key,$name,$description,$url,$lead,$permissionScheme,$notificationScheme,$issueSecurityScheme);
  398. $result = $this->_objectReturn($result,"Jira_Project"); return $result;
  399. } catch (Exception $e) {
  400. echo "Caught exception: ", print_r($e->getMessage(),true); }
  401. }
  402. /**
  403. * @param Jira_Project $rProject
  404. * @return Jira_Project
  405. */
  406. public function updateProject(Jira_Project $rProject)
  407. {
  408. $rProject = $this->_putObject($rProject,"Jira_Project");
  409. try {
  410. $result = parent::updateProject($this->getToken(),$rProject);
  411. $result = $this->_objectReturn($result,"Jira_Project"); return $result;
  412. } catch (Exception $e) {
  413. echo "Caught exception: ", print_r($e->getMessage(),true); }
  414. }
  415. /**
  416. * Returns the Project with the matching key (if the user has permission to browse
  417. * it).
  418. *
  419. * @param string $projectKey - the key of the requested project
  420. * @return Jira_Project
  421. */
  422. public function getProjectByKey($projectKey)
  423. {
  424. try {
  425. $result = parent::getProjectByKey($this->getToken(),$projectKey);
  426. $result = $this->_objectReturn($result,"Jira_Project"); return $result;
  427. } catch (Exception $e) {
  428. echo "Caught exception: ", print_r($e->getMessage(),true); }
  429. }
  430. /**
  431. * @param Jira_Project $project
  432. * @return void
  433. */
  434. public function removeAllRoleActorsByProject(Jira_Project $project)
  435. {
  436. $project = $this->_putObject($project,"Jira_Project");
  437. try {
  438. $result = parent::removeAllRoleActorsByProject($this->getToken(),$project); return $result;
  439. } catch (Exception $e) {
  440. echo "Caught exception: ", print_r($e->getMessage(),true); }
  441. }
  442. /**
  443. * Returns an array of all the issue priorities in JIRA.
  444. *
  445. * @return Jira_Priority[]
  446. */
  447. public function getPriorities()
  448. {
  449. try {
  450. $result = parent::getPriorities($this->getToken());
  451. $result = $this->_objectArrayReturn($result,"Jira_Priority"); return $result;
  452. } catch (Exception $e) {
  453. echo "Caught exception: ", print_r($e->getMessage(),true); }
  454. }
  455. /**
  456. * Returns an array of all the issue resolutions in JIRA.
  457. *
  458. * @return Jira_Resolution[]
  459. */
  460. public function getResolutions()
  461. {
  462. try {
  463. $result = parent::getResolutions($this->getToken());
  464. $result = $this->_objectArrayReturn($result,"Jira_Resolution"); return $result;
  465. } catch (Exception $e) {
  466. echo "Caught exception: ", print_r($e->getMessage(),true); }
  467. }
  468. /**
  469. * Returns an array of all the issue types for all projects in JIRA.
  470. *
  471. * @return Jira_IssueType[]
  472. */
  473. public function getIssueTypes()
  474. {
  475. try {
  476. $result = parent::getIssueTypes($this->getToken());
  477. $result = $this->_objectArrayReturn($result,"Jira_IssueType"); return $result;
  478. } catch (Exception $e) {
  479. echo "Caught exception: ", print_r($e->getMessage(),true); }
  480. }
  481. /**
  482. * Returns an array of all the issue statuses in JIRA.
  483. *
  484. * @return Jira_Status[]
  485. */
  486. public function getStatuses()
  487. {
  488. try {
  489. $result = parent::getStatuses($this->getToken());
  490. $result = $this->_objectArrayReturn($result,"Jira_Status"); return $result;
  491. } catch (Exception $e) {
  492. echo "Caught exception: ", print_r($e->getMessage(),true); }
  493. }
  494. /**
  495. * @return Jira_ProjectRole[]
  496. */
  497. public function getProjectRoles()
  498. {
  499. try {
  500. $result = parent::getProjectRoles($this->getToken());
  501. $result = $this->_objectArrayReturn($result,"Jira_ProjectRole"); return $result;
  502. } catch (Exception $e) {
  503. echo "Caught exception: ", print_r($e->getMessage(),true); }
  504. }
  505. /**
  506. * @param long $id
  507. * @return Jira_ProjectRole
  508. */
  509. public function getProjectRole($id)
  510. {
  511. try {
  512. $result = parent::getProjectRole($this->getToken(),$id);
  513. $result = $this->_objectReturn($result,"Jira_ProjectRole"); return $result;
  514. } catch (Exception $e) {
  515. echo "Caught exception: ", print_r($e->getMessage(),true); }
  516. }
  517. /**
  518. * @param Jira_ProjectRole $projectRole
  519. * @param Jira_Project $project
  520. * @return Jira_ProjectRoleActors
  521. */
  522. public function getProjectRoleActors(Jira_ProjectRole $projectRole, Jira_Project $project)
  523. {
  524. $project = $this->_putObject($project,"Jira_Project");
  525. try {
  526. $result = parent::getProjectRoleActors($this->getToken(),$projectRole,$project);
  527. $result = $this->_objectReturn($result,"Jira_ProjectRoleActors"); return $result;
  528. } catch (Exception $e) {
  529. echo "Caught exception: ", print_r($e->getMessage(),true); }
  530. }
  531. /**
  532. * @param Jira_ProjectRole $projectRole
  533. * @return Jira_RoleActors
  534. */
  535. public function getDefaultRoleActors(Jira_ProjectRole $projectRole)
  536. {
  537. $projectRole = $this->_putObject($projectRole,"Jira_ProjectRole");
  538. try {
  539. $result = parent::getDefaultRoleActors($this->getToken(),$projectRole);
  540. $result = $this->_objectReturn($result,"Jira_RoleActors"); return $result;
  541. } catch (Exception $e) {
  542. echo "Caught exception: ", print_r($e->getMessage(),true); }
  543. }
  544. /**
  545. * @param string $name
  546. * @param string $type
  547. * @return void
  548. */
  549. public function removeAllRoleActorsByNameAndType($name, $type)
  550. {
  551. try {
  552. $result = parent::removeAllRoleActorsByNameAndType($this->getToken(),$name,$type); return $result;
  553. } catch (Exception $e) {
  554. echo "Caught exception: ", print_r($e->getMessage(),true); }
  555. }
  556. /**
  557. * @param Jira_ProjectRole $projectRole
  558. * @param boolean $confirm
  559. * @return void
  560. */
  561. public function deleteProjectRole(Jira_ProjectRole $projectRole, $confirm)
  562. {
  563. $projectRole = $this->_putObject($projectRole,"Jira_ProjectRole");
  564. try {
  565. $result = parent::deleteProjectRole($this->getToken(),$projectRole,$confirm); return $result;
  566. } catch (Exception $e) {
  567. echo "Caught exception: ", print_r($e->getMessage(),true); }
  568. }
  569. /**
  570. * @param Jira_ProjectRole $projectRole
  571. * @return void
  572. */
  573. public function updateProjectRole(Jira_ProjectRole $projectRole)
  574. {
  575. $projectRole = $this->_putObject($projectRole,"Jira_ProjectRole");
  576. try {
  577. $result = parent::updateProjectRole($this->getToken(),$projectRole); return $result;
  578. } catch (Exception $e) {
  579. echo "Caught exception: ", print_r($e->getMessage(),true); }
  580. }
  581. /**
  582. * @param Jira_ProjectRole $projectRole
  583. * @return Jira_ProjectRole
  584. */
  585. public function createProjectRole(Jira_ProjectRole $projectRole)
  586. {
  587. $projectRole = $this->_putObject($projectRole,"Jira_ProjectRole");
  588. try {
  589. $result = parent::createProjectRole($this->getToken(),$projectRole);
  590. $result = $this->_objectReturn($result,"Jira_ProjectRole"); return $result;
  591. } catch (Exception $e) {
  592. echo "Caught exception: ", print_r($e->getMessage(),true); }
  593. }
  594. /**
  595. * @param string $name
  596. * @return boolean
  597. */
  598. public function isProjectRoleNameUnique($name)
  599. {
  600. try {
  601. $result = parent::isProjectRoleNameUnique($this->getToken(),$name); return $result;
  602. } catch (Exception $e) {
  603. echo "Caught exception: ", print_r($e->getMessage(),true); }
  604. }
  605. /**
  606. * @param ArrayOf_xsd_string $actors
  607. * @param Jira_ProjectRole $projectRole
  608. * @param Jira_Project $project
  609. * @param string $actorType
  610. * @return void
  611. */
  612. public function addActorsToProjectRole($actors, Jira_ProjectRole $projectRole, Jira_Project $project, $actorType)
  613. {
  614. $project = $this->_putObject($project,"Jira_Project");
  615. try {
  616. $result = parent::addActorsToProjectRole($this->getToken(),$actors,$projectRole,$project,$actorType); return $result;
  617. } catch (Exception $e) {
  618. echo "Caught exception: ", print_r($e->getMessage(),true); }
  619. }
  620. /**
  621. * @param ArrayOf_xsd_string $actors
  622. * @param Jira_ProjectRole $projectRole
  623. * @param Jira_Project $project
  624. * @param string $actorType
  625. * @return void
  626. */
  627. public function removeActorsFromProjectRole($actors, Jira_ProjectRole $projectRole, Jira_Project $project, $actorType)
  628. {
  629. $project = $this->_putObject($project,"Jira_Project");
  630. try {
  631. $result = parent::removeActorsFromProjectRole($this->getToken(),$actors,$projectRole,$project,$actorType); return $result;
  632. } catch (Exception $e) {
  633. echo "Caught exception: ", print_r($e->getMessage(),true); }
  634. }
  635. /**
  636. * @param ArrayOf_xsd_string $actors
  637. * @param Jira_ProjectRole $projectRole
  638. * @param string $type
  639. * @return void
  640. */
  641. public function addDefaultActorsToProjectRole($actors, Jira_ProjectRole $projectRole, $type)
  642. {
  643. $projectRole = $this->_putObject($projectRole,"Jira_ProjectRole");
  644. try {
  645. $result = parent::addDefaultActorsToProjectRole($this->getToken(),$actors,$projectRole,$type); return $result;
  646. } catch (Exception $e) {
  647. echo "Caught exception: ", print_r($e->getMessage(),true); }
  648. }
  649. /**
  650. * @param ArrayOf_xsd_string $actors
  651. * @param Jira_ProjectRole $projectRole
  652. * @param string $actorType
  653. * @return void
  654. */
  655. public function removeDefaultActorsFromProjectRole($actors, Jira_ProjectRole $projectRole, $actorType)
  656. {
  657. $projectRole = $this->_putObject($projectRole,"Jira_ProjectRole");
  658. try {
  659. $result = parent::removeDefaultActorsFromProjectRole($this->getToken(),$actors,$projectRole,$actorType); return $result;
  660. } catch (Exception $e) {
  661. echo "Caught exception: ", print_r($e->getMessage(),true); }
  662. }
  663. /**
  664. * @param Jira_ProjectRole $projectRole
  665. * @return Jira_Scheme[]
  666. */
  667. public function getAssociatedNotificationSchemes(Jira_ProjectRole $projectRole)
  668. {
  669. $projectRole = $this->_putObject($projectRole,"Jira_ProjectRole");
  670. try {
  671. $result = parent::getAssociatedNotificationSchemes($this->getToken(),$projectRole);
  672. $result = $this->_objectArrayReturn($result,"Jira_Scheme"); return $result;
  673. } catch (Exception $e) {
  674. echo "Caught exception: ", print_r($e->getMessage(),true); }
  675. }
  676. /**
  677. * @param Jira_ProjectRole $projectRole
  678. * @return Jira_Scheme[]
  679. */
  680. public function getAssociatedPermissionSchemes(Jira_ProjectRole $projectRole)
  681. {
  682. $projectRole = $this->_putObject($projectRole,"Jira_ProjectRole");
  683. try {
  684. $result = parent::getAssociatedPermissionSchemes($this->getToken(),$projectRole);
  685. $result = $this->_objectArrayReturn($result,"Jira_Scheme"); return $result;
  686. } catch (Exception $e) {
  687. echo "Caught exception: ", print_r($e->getMessage(),true); }
  688. }
  689. /**
  690. * @param string $projectKey
  691. * @return void
  692. */
  693. public function deleteProject($projectKey)
  694. {
  695. try {
  696. $result = parent::deleteProject($this->getToken(),$projectKey); return $result;
  697. } catch (Exception $e) {
  698. echo "Caught exception: ", print_r($e->getMessage(),true); }
  699. }
  700. /**
  701. * Returns the Project with the matching id (if the user has permission to browse
  702. * it).
  703. *
  704. * @param long $projectId - the id of the requested project
  705. * @return Jira_Project
  706. */
  707. public function getProjectById($projectId)
  708. {
  709. try {
  710. $result = parent::getProjectById($this->getToken(),$projectId);
  711. $result = $this->_objectReturn($result,"Jira_Project"); return $result;
  712. } catch (Exception $e) {
  713. echo "Caught exception: ", print_r($e->getMessage(),true); }
  714. }
  715. /**
  716. * Returns an array of all the versions for the specified project key.
  717. *
  718. * @param string $projectKey - the key of the requested project
  719. * @return Jira_Version[]
  720. */
  721. public function getVersions($projectKey)
  722. {
  723. try {
  724. $result = parent::getVersions($this->getToken(),$projectKey);
  725. $result = $this->_objectArrayReturn($result,"Jira_Version"); return $result;
  726. } catch (Exception $e) {
  727. echo "Caught exception: ", print_r($e->getMessage(),true); }
  728. }
  729. /**
  730. * @return Jira_Field[]
  731. */
  732. public function getCustomFields()
  733. {
  734. try {
  735. $result = parent::getCustomFields($this->getToken());
  736. $result = $this->_objectArrayReturn($result,"Jira_Field"); return $result;
  737. } catch (Exception $e) {
  738. echo "Caught exception: ", print_r($e->getMessage(),true); }
  739. }
  740. /**
  741. * @param string $issueKey
  742. * @return Jira_Comment[]
  743. */
  744. public function getComments($issueKey)
  745. {
  746. try {
  747. $result = parent::getComments($this->getToken(),$issueKey);
  748. $result = $this->_objectArrayReturn($result,"Jira_Comment"); return $result;
  749. } catch (Exception $e) {
  750. echo "Caught exception: ", print_r($e->getMessage(),true); }
  751. }
  752. /**
  753. * This retreives a list of the currently logged in user's favourite fitlers.
  754. *
  755. * @return Jira_Filter[]
  756. */
  757. public function getFavouriteFilters()
  758. {
  759. try {
  760. $result = parent::getFavouriteFilters($this->getToken());
  761. $result = $this->_objectArrayReturn($result,"Jira_Filter"); return $result;
  762. } catch (Exception $e) {
  763. echo "Caught exception: ", print_r($e->getMessage(),true); }
  764. }
  765. /**
  766. * @param string $projectKey
  767. * @param Jira_Version $version
  768. * @return void
  769. */
  770. public function releaseVersion($projectKey, Jira_Version $version)
  771. {
  772. $version = $this->_putObject($version,"Jira_Version");
  773. try {
  774. $result = parent::releaseVersion($this->getToken(),$projectKey,$version); return $result;
  775. } catch (Exception $e) {
  776. echo "Caught exception: ", print_r($e->getMessage(),true); }
  777. }
  778. /**
  779. * @param string $projectKey
  780. * @param string $versionName
  781. * @param boolean $archive
  782. * @return void
  783. */
  784. public function archiveVersion($projectKey, $versionName, $archive)
  785. {
  786. try {
  787. $result = parent::archiveVersion($this->getToken(),$projectKey,$versionName,$archive); return $result;
  788. } catch (Exception $e) {
  789. echo "Caught exception: ", print_r($e->getMessage(),true); }
  790. }
  791. /**
  792. * This will update an issue with new values.
  793. *
  794. * @param string $issueKey - the issue to update.
  795. * @param ArrayOf_tns1_RemoteFieldValue $actionParams - the list of issue fields to
  796. * change
  797. * @return Jira_Issue
  798. */
  799. public function updateIssue($issueKey, $actionParams)
  800. {
  801. try {
  802. $result = parent::updateIssue($this->getToken(),$issueKey,$actionParams);
  803. $result = $this->_objectReturn($result,"Jira_Issue"); return $result;
  804. } catch (Exception $e) {
  805. echo "Caught exception: ", print_r($e->getMessage(),true); }
  806. }
  807. /**
  808. * @param string $issueKey
  809. * @return Jira_Field[]
  810. */
  811. public function getFieldsForEdit($issueKey)
  812. {
  813. try {
  814. $result = parent::getFieldsForEdit($this->getToken(),$issueKey);
  815. $result = $this->_objectArrayReturn($result,"Jira_Field"); return $result;
  816. } catch (Exception $e) {
  817. echo "Caught exception: ", print_r($e->getMessage(),true); }
  818. }
  819. /**
  820. * Returns an array of all the (non-sub task) issue types for the specified project
  821. * id.
  822. *
  823. * @param string $projectId - id of the project
  824. * @return Jira_IssueType[]
  825. */
  826. public function getIssueTypesForProject($projectId)
  827. {
  828. try {
  829. $result = parent::getIssueTypesForProject($this->getToken(),$projectId);
  830. $result = $this->_objectArrayReturn($result,"Jira_IssueType"); return $result;
  831. } catch (Exception $e) {
  832. echo "Caught exception: ", print_r($e->getMessage(),true); }
  833. }
  834. /**
  835. * Returns an array of all the sub task issue types for the specified project id.
  836. *
  837. * @param string $projectId - id of the project
  838. * @return Jira_IssueType[]
  839. */
  840. public function getSubTaskIssueTypesForProject($projectId)
  841. {
  842. try {
  843. $result = parent::getSubTaskIssueTypesForProject($this->getToken(),$projectId);
  844. $result = $this->_objectArrayReturn($result,"Jira_IssueType"); return $result;
  845. } catch (Exception $e) {
  846. echo "Caught exception: ", print_r($e->getMessage(),true); }
  847. }
  848. /**
  849. * @param Jira_Group $group
  850. * @param Jira_User $ruser
  851. * @return void
  852. */
  853. public function addUserToGroup(Jira_Group $group, Jira_User $ruser)
  854. {
  855. $ruser = $this->_putObject($ruser,"Jira_User");
  856. try {
  857. $result = parent::addUserToGroup($this->getToken(),$group,$ruser); return $result;
  858. } catch (Exception $e) {
  859. echo "Caught exception: ", print_r($e->getMessage(),true); }
  860. }
  861. /**
  862. * @param Jira_Group $group
  863. * @param Jira_User $ruser
  864. * @return void
  865. */
  866. public function removeUserFromGroup(Jira_Group $group, Jira_User $ruser)
  867. {
  868. $ruser = $this->_putObject($ruser,"Jira_User");
  869. try {
  870. $result = parent::removeUserFromGroup($this->getToken(),$group,$ruser); return $result;
  871. } catch (Exception $e) {
  872. echo "Caught exception: ", print_r($e->getMessage(),true); }
  873. }
  874. /**
  875. * Returns the current security level for given issue
  876. *
  877. * @param string $issueKey - the issue key
  878. * @return Jira_SecurityLevel
  879. */
  880. public function getSecurityLevel($issueKey)
  881. {
  882. try {
  883. $result = parent::getSecurityLevel($this->getToken(),$issueKey);
  884. $result = $this->_objectReturn($result,"Jira_SecurityLevel"); return $result;
  885. } catch (Exception $e) {
  886. echo "Caught exception: ", print_r($e->getMessage(),true); }
  887. }
  888. /**
  889. * @param string $issueKey
  890. * @param Jira_Comment $remoteComment
  891. * @return void
  892. */
  893. public function addComment($issueKey, Jira_Comment $remoteComment)
  894. {
  895. $remoteComment = $this->_putObject($remoteComment,"Jira_Comment");
  896. try {
  897. $result = parent::addComment($this->getToken(),$issueKey,$remoteComment); return $result;
  898. } catch (Exception $e) {
  899. echo "Caught exception: ", print_r($e->getMessage(),true); }
  900. }
  901. /**
  902. * Cleans up an authentication token that was previously created with a call to
  903. *
  904. * @return boolean
  905. */
  906. public function logout()
  907. {
  908. try {
  909. $result = parent::logout($this->getToken()); return $result;
  910. } catch (Exception $e) {
  911. echo "Caught exception: ", print_r($e->getMessage(),true); }
  912. }
  913. /**
  914. * Returns the Project with the matching id (if the user has permission to browse
  915. * it) with notification, issue security and permission schemes attached.
  916. *
  917. * @param long $projectId - the id of the requested project
  918. * @return Jira_Project
  919. */
  920. public function getProjectWithSchemesById($projectId)
  921. {
  922. try {
  923. $result = parent::getProjectWithSchemesById($this->getToken(),$projectId);
  924. $result = $this->_objectReturn($result,"Jira_Project"); return $result;
  925. } catch (Exception $e) {
  926. echo "Caught exception: ", print_r($e->getMessage(),true); }
  927. }
  928. /**
  929. * Returns an array of all security levels for a given project.
  930. *
  931. * @param string $projectKey - the key for the project
  932. * @return Jira_SecurityLevel[]
  933. */
  934. public function getSecurityLevels($projectKey)
  935. {
  936. try {
  937. $result = parent::getSecurityLevels($this->getToken(),$projectKey);
  938. $result = $this->_objectArrayReturn($result,"Jira_SecurityLevel"); return $result;
  939. } catch (Exception $e) {
  940. echo "Caught exception: ", print_r($e->getMessage(),true); }
  941. }
  942. /**
  943. * Retrieves avatars for the given project. If the includeSystemAvatars parameter
  944. * is true, this will include both system (built-in) avatars as well as custom
  945. * (user-supplied) avatars for that project, otherwise it will include only the
  946. * custom avatars. Project browse permission is required.
  947. *
  948. * @param string $projectKey - the key for the project.
  949. * @param boolean $includeSystemAvatars - if false, only custom avatars will be
  950. * included in the returned array.
  951. * @return Jira_Avatar[]
  952. */
  953. public function getProjectAvatars($projectKey, $includeSystemAvatars)
  954. {
  955. try {
  956. $result = parent::getProjectAvatars($this->getToken(),$projectKey,$includeSystemAvatars);
  957. $result = $this->_objectArrayReturn($result,"Jira_Avatar"); return $result;
  958. } catch (Exception $e) {
  959. echo "Caught exception: ", print_r($e->getMessage(),true); }
  960. }
  961. /**
  962. * Sets the current avatar for the given project to that with the given id. Project
  963. * administration permission is required.
  964. *
  965. * @param string $projectKey - the key for the project.
  966. * @param long $avatarId - the id of an existing avatar to use for the project or
  967. * null for the default avatar.
  968. * @return void
  969. */
  970. public function setProjectAvatar($projectKey, $avatarId)
  971. {
  972. try {
  973. $result = parent::setProjectAvatar($this->getToken(),$projectKey,$avatarId); return $result;
  974. } catch (Exception $e) {
  975. echo "Caught exception: ", print_r($e->getMessage(),true); }
  976. }
  977. /**
  978. * Retrieves the current avatar for the given project. Project browse permission is
  979. * required.
  980. *
  981. * @param string $projectKey - the key for the project.
  982. * @return Jira_Avatar
  983. */
  984. public function getProjectAvatar($projectKey)
  985. {
  986. try {
  987. $result = parent::getProjectAvatar($this->getToken(),$projectKey);
  988. $result = $this->_objectReturn($result,"Jira_Avatar"); return $result;
  989. } catch (Exception $e) {
  990. echo "Caught exception: ", print_r($e->getMessage(),true); }
  991. }
  992. /**
  993. * Deletes the given custom Avatar from the system. System avatars cannot be
  994. * deleted. Project administration permission is required.
  995. *
  996. * @param long $avatarId - id of the custom avatar to delete.
  997. * @return void
  998. */
  999. public function deleteProjectAvatar($avatarId)
  1000. {
  1001. try {
  1002. $result = parent::deleteProjectAvatar($this->getToken(),$avatarId); return $result;
  1003. } catch (Exception $e) {
  1004. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1005. }
  1006. /**
  1007. * @return Jira_Scheme[]
  1008. */
  1009. public function getNotificationSchemes()
  1010. {
  1011. try {
  1012. $result = parent::getNotificationSchemes($this->getToken());
  1013. $result = $this->_objectArrayReturn($result,"Jira_Scheme"); return $result;
  1014. } catch (Exception $e) {
  1015. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1016. }
  1017. /**
  1018. * @return Jira_PermissionScheme[]
  1019. */
  1020. public function getPermissionSchemes()
  1021. {
  1022. try {
  1023. $result = parent::getPermissionSchemes($this->getToken());
  1024. $result = $this->_objectArrayReturn($result,"Jira_PermissionScheme"); return $result;
  1025. } catch (Exception $e) {
  1026. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1027. }
  1028. /**
  1029. * @return Jira_Permission[]
  1030. */
  1031. public function getAllPermissions()
  1032. {
  1033. try {
  1034. $result = parent::getAllPermissions($this->getToken());
  1035. $result = $this->_objectArrayReturn($result,"Jira_Permission"); return $result;
  1036. } catch (Exception $e) {
  1037. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1038. }
  1039. /**
  1040. * @param string $name
  1041. * @param string $description
  1042. * @return Jira_PermissionScheme
  1043. */
  1044. public function createPermissionScheme($name, $description)
  1045. {
  1046. try {
  1047. $result = parent::createPermissionScheme($this->getToken(),$name,$description);
  1048. $result = $this->_objectReturn($result,"Jira_PermissionScheme"); return $result;
  1049. } catch (Exception $e) {
  1050. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1051. }
  1052. /**
  1053. * @param Jira_PermissionScheme $permissionScheme
  1054. * @param Jira_Permission $permission
  1055. * @param Jira_Entity $remoteEntity
  1056. * @return Jira_PermissionScheme
  1057. */
  1058. public function addPermissionTo(Jira_PermissionScheme $permissionScheme, Jira_Permission $permission, Jira_Entity $remoteEntity)
  1059. {
  1060. $remoteEntity = $this->_putObject($remoteEntity,"Jira_Entity");
  1061. try {
  1062. $result = parent::addPermissionTo($this->getToken(),$permissionScheme,$permission,$remoteEntity);
  1063. $result = $this->_objectReturn($result,"Jira_PermissionScheme"); return $result;
  1064. } catch (Exception $e) {
  1065. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1066. }
  1067. /**
  1068. * @param Jira_PermissionScheme $permissionSchemeName
  1069. * @param Jira_Permission $permission
  1070. * @param Jira_Entity $remoteEntity
  1071. * @return Jira_PermissionScheme
  1072. */
  1073. public function deletePermissionFrom(Jira_PermissionScheme $permissionSchemeName, Jira_Permission $permission, Jira_Entity $remoteEntity)
  1074. {
  1075. $remoteEntity = $this->_putObject($remoteEntity,"Jira_Entity");
  1076. try {
  1077. $result = parent::deletePermissionFrom($this->getToken(),$permissionSchemeName,$permission,$remoteEntity);
  1078. $result = $this->_objectReturn($result,"Jira_PermissionScheme"); return $result;
  1079. } catch (Exception $e) {
  1080. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1081. }
  1082. /**
  1083. * @param string $permissionSchemeName
  1084. * @return void
  1085. */
  1086. public function deletePermissionScheme($permissionSchemeName)
  1087. {
  1088. try {
  1089. $result = parent::deletePermissionScheme($this->getToken(),$permissionSchemeName); return $result;
  1090. } catch (Exception $e) {
  1091. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1092. }
  1093. /**
  1094. * @param Jira_Issue $rIssue
  1095. * @param long $securityLevelId
  1096. * @return Jira_Issue
  1097. */
  1098. public function createIssueWithSecurityLevel(Jira_Issue $rIssue, $securityLevelId)
  1099. {
  1100. $rIssue = $this->_putObject($rIssue,"Jira_Issue");
  1101. try {
  1102. $result = parent::createIssueWithSecurityLevel($this->getToken(),$rIssue,$securityLevelId);
  1103. $result = $this->_objectReturn($result,"Jira_Issue"); return $result;
  1104. } catch (Exception $e) {
  1105. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1106. }
  1107. /**
  1108. * Deprecated.
  1109. *
  1110. * @param string $issueKey - the issue to attach to
  1111. * @param ArrayOf_xsd_string $fileNames - an array of filenames; each element names
  1112. * an attachment to be uploaded
  1113. * @param ArrayOf_xsd_base64Binary $attachments - an array of byte arrays; each
  1114. * element contains the data of the attachment to be uploaded
  1115. * @return boolean
  1116. */
  1117. public function addAttachmentsToIssue($issueKey, $fileNames, $attachments)
  1118. {
  1119. try {
  1120. $result = parent::addAttachmentsToIssue($this->getToken(),$issueKey,$fileNames,$attachments); return $result;
  1121. } catch (Exception $e) {
  1122. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1123. }
  1124. /**
  1125. * @param string $issueKey
  1126. * @return Jira_Attachment[]
  1127. */
  1128. public function getAttachmentsFromIssue($issueKey)
  1129. {
  1130. try {
  1131. $result = parent::getAttachmentsFromIssue($this->getToken(),$issueKey);
  1132. $result = $this->_objectArrayReturn($result,"Jira_Attachment"); return $result;
  1133. } catch (Exception $e) {
  1134. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1135. }
  1136. /**
  1137. * @param string $issueKey
  1138. * @return void
  1139. */
  1140. public function deleteIssue($issueKey)
  1141. {
  1142. try {
  1143. $result = parent::deleteIssue($this->getToken(),$issueKey); return $result;
  1144. } catch (Exception $e) {
  1145. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1146. }
  1147. /**
  1148. * @param Jira_Comment $remoteComment
  1149. * @return boolean
  1150. */
  1151. public function hasPermissionToEditComment(Jira_Comment $remoteComment)
  1152. {
  1153. $remoteComment = $this->_putObject($remoteComment,"Jira_Comment");
  1154. try {
  1155. $result = parent::hasPermissionToEditComment($this->getToken(),$remoteComment); return $result;
  1156. } catch (Exception $e) {
  1157. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1158. }
  1159. /**
  1160. * @param Jira_Comment $remoteComment
  1161. * @return Jira_Comment
  1162. */
  1163. public function editComment(Jira_Comment $remoteComment)
  1164. {
  1165. $remoteComment = $this->_putObject($remoteComment,"Jira_Comment");
  1166. try {
  1167. $result = parent::editComment($this->getToken(),$remoteComment);
  1168. $result = $this->_objectReturn($result,"Jira_Comment"); return $result;
  1169. } catch (Exception $e) {
  1170. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1171. }
  1172. /**
  1173. * @param string $issueKey
  1174. * @param string $actionIdString
  1175. * @return Jira_Field[]
  1176. */
  1177. public function getFieldsForAction($issueKey, $actionIdString)
  1178. {
  1179. try {
  1180. $result = parent::getFieldsForAction($this->getToken(),$issueKey,$actionIdString);
  1181. $result = $this->_objectArrayReturn($result,"Jira_Field"); return $result;
  1182. } catch (Exception $e) {
  1183. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1184. }
  1185. /**
  1186. * This will progress an issue through a workflow.
  1187. *
  1188. * @param string $issueKey - the issue to update.
  1189. * @param string $actionIdString - the workflow action to progress to
  1190. * @param ArrayOf_tns1_RemoteFieldValue $actionParams - the list of issue fields to
  1191. * change in this workflow step
  1192. * @return Jira_Issue
  1193. */
  1194. public function progressWorkflowAction($issueKey, $actionIdString, $actionParams)
  1195. {
  1196. try {
  1197. $result = parent::progressWorkflowAction($this->getToken(),$issueKey,$actionIdString,$actionParams);
  1198. $result = $this->_objectReturn($result,"Jira_Issue"); return $result;
  1199. } catch (Exception $e) {
  1200. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1201. }
  1202. /**
  1203. * @param string $issueId
  1204. * @return Jira_Issue
  1205. */
  1206. public function getIssueById($issueId)
  1207. {
  1208. try {
  1209. $result = parent::getIssueById($this->getToken(),$issueId);
  1210. $result = $this->_objectReturn($result,"Jira_Issue"); return $result;
  1211. } catch (Exception $e) {
  1212. echo "Caught exception: ", print_r($e->getMessage(),true); }
  1213. }
  1214. /**
  1215. * Adds a worklog to the given issue and sets the issue's remaining estimate field
  1216. * to the given value. The issue's time spent field will be increased by the
  1217. * amount in the remoteWorklog.getTimeSpent().
  1218. *
  1219. * @param string $issueKey - the key of the issue.
  1220. * @param Jira_Worklog $remoteWorklog - the worklog to add.
  1221. * @param string $newRemainingEstimate - the new value for the issue's remaining
  1222. * estimate as a duration string, eg 1d 2h.
  1223. * @return Jira_Worklog
  1224. */
  1225. public function addWorklogWithNewRemainingEstimate($issueKey, Jira_Worklog $remoteWorklog, $newRemainingEstimate)
  1226. {
  1227. $remoteWorklog = $this->_putObject($remoteWorklog,"Jira_Worklog");
  1228. try {
  1229. $result = parent::addWorklogWithNewRemainingEstimate($this->getToken(),$issueKey,$remoteWorklog,$n

Large files files are truncated, but you can click here to view the full file