Created
August 6, 2021 11:55
-
-
Save percybolmer/3fae1fd329f4ac128c3e5fdf57751192 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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