Disable email sending when creating issue from API

Hi,

Thanks to JT-86113, there is now a way to send a mail when a new issue is created from the API.

To me, this also means that when a reply is received, it is linked to the issue as a comment (before, it always triggered a new issue creation, instead of a comment).

However, it was mentioned “provide an option to control whether or not to send a notification in this case”. Is it possible to disable the mail sending while keeping this “linking” behaviour.

Why am I asking that:

I want to create a helpdesk issue with cc recipients. It is still impossible for now (see JT-96504), so I'm using api/issue/<issueId>/helpdesk/ticketCCUsers after issue creation. To ensure that the cc recipients receive the notification, I have a custom workflow that triggers when a custom field changes and that send the mail. This is a decent process, but a bit complicated.

The issue is that a first mail is sent to the main recipient, then a second mail is sent to the ccs. I had to put a dummy “to” field for this second one, so the main recipient does not receive two mails.

If I could disable the first mail sending, I could send a mail once, from my custom workflow, with the main recipient as the “to” and the others as “cc”.

What would be best: put the cc directly at issue creation.

Thanks !

 

0
1 comment
Official comment

Hi Nathanael,

I'm Dmitrii from the YouTrack Team. Thanks for reaching out!

There's currently no option to suppress the "Request Received" notification when creating a helpdesk ticket via the REST API. The ability to selectively control helpdesk notifications is tracked in JT-75212. Please feel free to vote for it. Your vote helps us measure feature demand and automatically subscribes you to updates. To do so, sign in to JetBrains YouTrack and click the thumbs-up icon.

 

Please sign in to leave a comment.