Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.
×Hi All,
I am using the below API to add a customer in a specific project in JSD but there is no email trigger to that customer .
https://serverIP/rest/servicedeskapi/servicedesk/projectkey/customer
On the other hand when i am adding a customer manually by going to customers option in the project settings and clicking on ADD Customers and providing the email id, the email gets triggered to the new customer added and they receives the below email -
Hi,
XXX has invited you to the Sandbox Shrikant portal!
Visit the portal to raise requests and get help.
Could someone please let me know why the emails are not getting triggered when calling through API.
Thanks so much for your question.
The reason that an email is not send via the add customer REST API call that you are using is that by design when adding a customer via this mechanism emails are not triggered. On the REST API documentation this behaviour has been documented.
When you add a customer via the UI, this uses a different internal REST API and service to trigger an email to the customer and invite them to join the project. This is an internal API, so using it does come with the caveat that breaking changes could be made to the endpoint without notification, but it doesn’t mean you cannot use it, just that you use it at your own risk 🙂.
The POST endpoint is:
/jira/rest/servicedesk/1/pages/people/customers/pagination/{projectKey}/invite
And the payload is a list of Strings (email addresses) to be added, e.g.
{
"emails": ["customer@mycustomer.com", "customerTwo@mycustomer.com"]
}
Thanks,
Craig
Jira Service Management
ps. if this answer is correct, please select the ‘accept answer’ button
Journeys is a brand new feature in Jira Service Management that helps you streamline various processes in your organization that may cross multiple departments, such as employee onboarding or off-boarding that require action from different teams. ✨
Join the EAP →
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.