@@ 46-62 (lines=17) @@ | ||
43 | ||
44 | } |
|
45 | ||
46 | public function issue() |
|
47 | { |
|
48 | ||
49 | $issueKey = "TEST-879"; |
|
50 | ||
51 | try { |
|
52 | $issueService = new IssueService(); |
|
53 | ||
54 | $ret = $issueService->deleteIssue($issueKey); |
|
55 | // if you want to delete issues with sub-tasks |
|
56 | //$ret = $issueService->deleteIssue($issueKey, array('deleteSubtasks' => 'true')); |
|
57 | ||
58 | var_dump($ret); |
|
59 | } catch (SenhorVerdugoException $e) { |
|
60 | $this->assertTrue(false, "Change Assignee Failed : " . $e->getMessage()); |
|
61 | } |
|
62 | } |
|
63 | ||
64 | public function project(ProjectModel $project) |
|
65 | { |
@@ 72-90 (lines=19) @@ | ||
69 | } |
|
70 | } |
|
71 | ||
72 | public function changeAssignee() |
|
73 | { |
|
74 | ||
75 | $issueKey = "TEST-879"; |
|
76 | ||
77 | try { |
|
78 | $issueService = new IssueService(); |
|
79 | ||
80 | // if assignee is -1, automatic assignee used. |
|
81 | // A null assignee will remove the assignee. |
|
82 | $assignee = 'newAssigneeName'; |
|
83 | ||
84 | $ret = $issueService->changeAssignee($issueKey, $assignee); |
|
85 | ||
86 | var_dump($ret); |
|
87 | } catch (SenhorVerdugoException $e) { |
|
88 | $this->assertTrue(false, "Change Assignee Failed : " . $e->getMessage()); |
|
89 | } |
|
90 | } |
|
91 | ||
92 | public function issue() |
|
93 | { |