func (je *JiraExport) GetDataForClubhouse(userMaps []userMap) ClubHouseData {
	epics := []JiraItem{}
	tasks := []JiraItem{}
	stories := []JiraItem{}
	for _, item := range je.Items {
		switch item.Type {
		case "Epic":
			epics = append(epics, item)
			break
		case "Sub-task":
			tasks = append(tasks, item)
			break
		default:
			stories = append(stories, item)
			break
		}
	}
	chEpics := []ClubHouseCreateEpic{}
	for _, item := range epics {
		chEpics = append(chEpics, item.CreateEpic())
	}
	chTasks := []ClubHouseCreateTask{}
	chStories := []ClubHouseCreateStory{}
	for _, item := range tasks {
		chTasks = append(chTasks, item.CreateTask())
	}
	for _, item := range stories {
		chStories = append(chStories, item.CreateStory(userMaps))
	}
	storyMap := make(map[string]int)
	for i, item := range chStories {
		storyMap[item.key] = i
	}
	for _, task := range chTasks {
		chStories[storyMap[task.parent]].Tasks = append(chStories[storyMap[task.parent]].Tasks, task)
	}
	return ClubHouseData{Epics: chEpics, Stories: chStories}
}
GetDataForClubhouse will take the data from the XML and translate it into a format for sending to Clubhouse
package main
import (
	"encoding/xml"
	"fmt"
	"strings"
	"time"
	"strconv"
	"github.com/kennygrant/sanitize"
)
type JiraExport struct {
	ElementName xml.Name   `xml:"rss"`
	Items       []JiraItem `xml:"channel>item"`
}
type JiraAssignee struct {
	Username		string	`xml:"username,attr"`
}
type JiraReporter struct {
	Username		string	`xml:"username,attr"`
}
type JiraItem struct {
	Assignee        JiraAssignee   `xml:"assignee"`
	CreatedAtString string   		`xml:"created"`
	Description     string   		`xml:"description"`
	Key             string   		`xml:"key"`
	Labels          []string 		`xml:"labels>label"`
	Project         string   		`xml:"project"`
	Resolution      string   		`xml:"resolution"`
	Reporter        JiraReporter  	`xml:"reporter"`
	Status          string   		`xml:"status"`
	Summary         string   		`xml:"summary"`
	Title           string   		`xml:"title"`
	Type            string   		`xml:"type"`
	Parent          string   		`xml:"parent"`
	Comments     []JiraComment     `xml:"comments>comment"`
	CustomFields []JiraCustomField `xml:"customfields>customfield"`
	epicLink string
	UpdatedAtString string   		`xml:"updated"`
	ResolvedAtString string   		`xml:"resolved"`
}
type JiraCustomField struct {
	FieldName  string   `xml:"customfieldname"`
	FieldVales []string `xml:"customfieldvalues>customfieldvalue"`
}
type JiraComment struct {
	Author          string `xml:"author,attr"`
	CreatedAtString string `xml:"created,attr"`
	Comment         string `xml:",chardata"`
	ID              string `xml:"id,attr"`
}
func GetUserInfo(userMaps []userMap, jiraUsername string) (CHProjectID int, CHID string) {
	for _, u := range userMaps {
		if u.JiraUsername == jiraUsername {
			return u.CHProjectID, u.CHID
		}
	}
	return 0, ""
}