I am trying to use Calculated with Components to give me the correct project to clone the ticket to. However, it keeps failing. Here is the code I found to try. I noticed the code was for custom fields, can a system field such as Components be used?
switch (issue.getAsString("Components"))
{
Answer "a": return Project "A"
Answer "B": return Project "B"
}