I would like to automatically create an epic based on the story transition. The story contains a multiselect field called favourite drink.
When a user selects a the option 'Tea', the epic should be automatically created in the Tea Project and when the user selects the option 'Coffee', the epic should be automatically created in the Coffee Project.
I tried to use ScriptRunner build in scripts but no luck. For testing purposes, I automatically created a story on the Tea project when the 'Tea' option is selected and it works well. But not working for the Epic. I think the reason it may not be working is due to the Epic Name field not completed (I could be wrong)

