| @@ 36-51 (lines=16) @@ | ||
| 33 | * i.e. $transition->setTransitionName('Some Status') |
|
| 34 | * See SenhorVerdugo API reference |
|
| 35 | */ |
|
| 36 | public function issueStatus() |
|
| 37 | { |
|
| 38 | $issueKey = "TEST-879"; |
|
| 39 | ||
| 40 | try { |
|
| 41 | $transition = new Transition(); |
|
| 42 | $transition->setTransitionName('Resolved'); |
|
| 43 | $transition->setCommentBody('performing the transition via REST API.'); |
|
| 44 | ||
| 45 | $issueService = new IssueService(); |
|
| 46 | ||
| 47 | $issueService->transition($issueKey, $transition); |
|
| 48 | } catch (SenhorVerdugoException $e) { |
|
| 49 | $this->assertTrue(false, "add Comment Failed : " . $e->getMessage()); |
|
| 50 | } |
|
| 51 | } |
|
| 52 | ||
| 53 | public function comment() |
|
| 54 | { |
|
| @@ 53-70 (lines=18) @@ | ||
| 50 | } |
|
| 51 | } |
|
| 52 | ||
| 53 | public function comment() |
|
| 54 | { |
|
| 55 | $issueKey = "TEST-879"; |
|
| 56 | ||
| 57 | try { |
|
| 58 | $commentId = 12345; |
|
| 59 | ||
| 60 | $issueService = new IssueService(); |
|
| 61 | ||
| 62 | $comment = new Comment(); |
|
| 63 | $comment->setBody('Updated comments'); |
|
| 64 | ||
| 65 | $issueService->updateComment($issueKey, $commentId, $comment); |
|
| 66 | ||
| 67 | } catch (SenhorVerdugoException $e) { |
|
| 68 | $this->assertTrue(false, 'Delete comment Failed : '.$e->getMessage()); |
|
| 69 | } |
|
| 70 | } |
|
| 71 | ||
| 72 | public function changeAssignee() |
|
| 73 | { |
|