Skip to content

Instantly share code, notes, and snippets.

@percybolmer
Created August 6, 2021 11:55
Show Gist options
  • Save percybolmer/3fae1fd329f4ac128c3e5fdf57751192 to your computer and use it in GitHub Desktop.
Save percybolmer/3fae1fd329f4ac128c3e5fdf57751192 to your computer and use it in GitHub Desktop.
func main() {
// Load the .env file
godotenv.Load(".env")
// Create a BasicAuth Transport object
tp := jira.BasicAuthTransport{
Username: os.Getenv("JIRA_USER"),
Password: os.Getenv("JIRA_TOKEN"),
}
// Create a new Jira Client
client, err := jira.NewClient(tp.Client(), os.Getenv("JIRA_URL"))
if err != nil {
log.Fatal(err)
}
//getProjects(client)
getIssues(client, "project = 'YourProject' and Status = 'Done'")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment