added functionality to pull in pending tickets and create hash for tags