We use a JIRA structure of Initiative > Epic > User Story. We have added a custom field 'Customer Name' at both the Initiative and Epic levels.
We need JIRA automation for the following scenarios:
- If an Initiative with the specified 'Customer Name' does not exist in the project, create both an Initiative and an Epic, using the provided 'Customer Name' when creating the Epic.
- If an Initiative with the specified 'Customer Name' already exists, create only an Epic linked to that Initiative, using the same 'Customer Name'."