my first attempt at a custom jql function