Skip to content

Link CRM contacts found by matching cc field

Lee Tickett requested to merge 364134-link-service-desk-cc-to-contacts into master

What does this MR do and why?

When a service desk e-mail is received, if any of the cc emails match CRM contacts, they will be linked to the new issue.

Screenshots or screen recordings

I am unable to test in GDK.

How to set up and validate locally

  1. Follow instructions at https://docs.gitlab.com/ee/development/emails.html to enable incoming e-mail and service desk email
  2. Enable CRM for a top level group: https://docs.gitlab.com/ee/user/crm/
  3. Create a customer relations contact in your group using your own e-mail address
  4. Create one or more contacts using other e-mail addresses
  5. Grab the service desk e-mail for a project in your group (e.g. from http://gdk.test:3000/flightjs/Flight/-/issues/service_desk something like gitlab-gdk+flightjs-flight-6-issue-@gmail.com
  6. Send an e-mail to the service desk and copy one or more e-mail address of the contacts you previously created
  7. Confirm the created issue has your CRM contact records attached

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #364134 (closed)

Edited by Lee Tickett

Merge request reports