How to write a post-function that could read the custom field and make the assignment based on it.
My scenario is the following
I have 3 groups: A,B,C and custom field color :Blue,Red,Green
if blue is selected and automatic assigne is selected then it will be assigned for (group A)
if red is selected and automatic assigne is selected then it will be assigned for (group 
if green is selected and automatic assigne is selected then it will be assigned for (group C)
Thanks for any help or suggestion