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: | 1 contact on issue. Webhook issue update: |
2 contacts on issue. Webhook issue update: | |
No contacts on issue. Webhook issue update: |
How to set up and validate locally
Numbered steps to set up and validate the change are strongly suggested.
- Go to Groups.
- Select Gitlab Org group.
- Go to Settings > General > Permissions and group features.
- Scroll down to Customer relations and turn on Customer relations is enabled.
- Click Save changes.
- Go toGroup overview.
- Click the Gitlab Test project.
- Go to Settings > Webhooks.
- Add a new webhook with the following settings.
- Url:
http://example.com
. - Trigger: Issues events.
- Url:
- Go to Issues.
- Select a random issue.
- 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
). - You need to trigger a webhook issue update. Add the following note to update the issue
/estimate 1h
. - Select Settings > Webhooks.
- Click Edit on the webhook that you have recently created.
- Click view details of the recently fired issue Hook.
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #415795