Make Helpdesk email updates explicit
This commit is contained in:
@@ -47,6 +47,25 @@ $client->updateIssue((int) $created['id'], ['notes' => 'Follow-up note']);
|
||||
$client->deleteIssue((int) $created['id']);
|
||||
```
|
||||
|
||||
`updateIssue()` is intentionally safe by default: on Helpdesk-backed issues, a
|
||||
normal Redmine note does **not** send an email to the customer. To send through
|
||||
the Helpdesk plugin, opt in explicitly:
|
||||
|
||||
```php
|
||||
$client->updateIssue(39858, [
|
||||
'notes' => 'Customer-visible response.',
|
||||
], [
|
||||
'send_helpdesk_email' => true,
|
||||
]);
|
||||
|
||||
// Equivalent explicit form:
|
||||
$client->sendHelpdeskIssueResponse(39858, 'Customer-visible response.');
|
||||
```
|
||||
|
||||
Use the default non-email update for internal notes, status/category/assignee
|
||||
changes, and automation cleanup. Use the Helpdesk email path only when the
|
||||
caller deliberately wants the customer to receive mail.
|
||||
|
||||
## Test instance
|
||||
|
||||
A working test copy of Redmine is available on the LAN at `192.168.50.170`.
|
||||
|
||||
Reference in New Issue
Block a user