Skip to content

Add CRM Contacts to the Issue Webhook

What does this MR do and why?

Add CRM contacts to the issue webhook

Changelog: added

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Before After
1 contact on issue. Webhook issue update: image 1 contact on issue. Webhook issue update: image
2 contacts on issue. Webhook issue update: image
No contacts on issue. Webhook issue update: image

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Go to Groups.
  2. Select Gitlab Org group.
  3. Go to Settings > General > Permissions and group features.
  4. Scroll down to Customer relations and turn on Customer relations is enabled.
  5. Click Save changes.
  6. Go toGroup overview.
  7. Click the Gitlab Test project.
  8. Go to Settings > Webhooks.
  9. Add a new webhook with the following settings.
    • Url: http://example.com.
    • Trigger: Issues events.
  10. Go to Issues.
  11. Select a random issue.
  12. Add a random contact (If you can't find any contacts, you may need to create one: https://docs.gitlab.com/ee/user/crm/#create-a-contact).
  13. You need to trigger a webhook issue update. Add the following note to update the issue /estimate 1h.
  14. Select Settings > Webhooks.
  15. Click Edit on the webhook that you have recently created.
  16. Click view details of the recently fired issue Hook.
  17. Scroll down to customer_relations_contacts to view contacts in the payload.

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 #415795

Edited by Tickett Enterprises

Merge request reports