I will enter this as a new question. I successfully added story points and fix version. But I can't seem to figure out how to parse the sprint to get the name. When I use a javascript function like split(","), the entire script seems not to work. Any help is appreciated.
Reference:
How do you add a column to "Issues in Epic" panel
In fact Sprint is also a custom field. For example in the public instance, the customfield is customfield_11930. You may need to do some string parsing based on the value that you get for the customfield.