Support contact quick actions in issue description
What does this MR do and why?
We only currently support crm contact quick action in notes. This MR adds support for issue description on create and update.
Screenshots or screen recordings
How to set up and validate locally
From rails console:
1. Enable feature flag:
Feature.enable(:customer_relations)
From GraphiQL (http://gdk.test:3000/-/graphql-explorer):
2. Pick an issue (I used http://gdk.test:3000/flightjs/Flight/-/issues/30)
4. Create a few contacts for the group the issue belongs to (attaching them to the organizations you just created):
mutation {
customerRelationsContactCreate(input:
{
groupId: "gid://gitlab/Group/26"
firstName: "Lee"
lastName: "Tickett"
email: "example@gitlab.com"
}) {
contact {
id
firstName
lastName
}
errors
}
}
6. Attempt to create an issue using quick action /add_contacts email1 email2
7. Attempt to edit an issue using quick action /add_contacts email1 email2
8. Attempt to edit an issue using quick action /remove_contacts email1 email2
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 #2256
Edited by Lee Tickett