I would like to automatically create a new epic when the user chose the tea option on the favourite drink checkbox located on the screen of the story issuetype. The multiselect checkbox contains the options: tea, coffee, water.
I am using scriptrunner. So far I went to the clone issue option on scriptrunner. and added the following condition to test the checkbox:
cfValues['customfield_11802'] == 'Tea'
I would also like to copy the summary field to the new epic.. But I also know that the epic name is a compulsory field... and I am not sure how to copy the summary to the epic summary field
The problem so far is that the a new story didn't get created. I think the condition is failing