Skip to content

Commit c8dcd8d

Browse files
committed
- change to a strict function parameter
- drop the function changeAssinee() in IssueService
1 parent 4a9134f commit c8dcd8d

3 files changed

Lines changed: 49 additions & 78 deletions

File tree

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1063,7 +1063,7 @@ try {
10631063

10641064
#### Change Assignee
10651065

1066-
[See Jira API reference](https://docs.atlassian.com/software/jira/docs/api/REST/latest/#api/2/issue-assign)
1066+
[See Jira API reference](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-rest-api-3-issue-issueidorkey-assignee-put)
10671067

10681068
```php
10691069
<?php
@@ -1079,9 +1079,9 @@ try {
10791079

10801080
// if assignee is -1, automatic assignee used.
10811081
// A null assignee will remove the assignee.
1082-
$assignee = 'newAssigneeName';
1082+
$accountId = 'replace-to-user-account-id';
10831083

1084-
$ret = $issueService->changeAssignee($issueKey, $assignee);
1084+
$ret = $issueService->changeAssigneeByAccountId($issueKey, $accountId);
10851085

10861086
var_dump($ret);
10871087
} catch (JiraCloud\JiraException $e) {

0 commit comments

Comments
 (0)