added color customfield and some business logic