"github.com/ctreminiom/go-atlassian/jira/v2"
----------- Set an environment variable in git bash -----------
export HOST="https://ctreminiom.atlassian.net/"
export MAIL="MAIL_ADDRESS"
Docs: https://stackoverflow.com/questions/34169721/set-an-environment-variable-in-git-bash
token = os.Getenv("TOKEN")
atlassian, err := v2.New(nil, host)
atlassian.Auth.SetBasicAuth(mail, token)
fieldID = "customfield_10014"
screens, response, err := atlassian.Screen.Fields(context.Background(), fieldID, startAt, maxResult)
log.Println("Response HTTP Code", response.Code)
log.Println("HTTP Endpoint Used", response.Endpoint)
for _, screen := range screens.Values {
log.Println(screen.ID, screen.Name, screen.Description)