
๐Schemes
Get Field Configuration Schemes
package main
import (
"context"
"fmt"
v2 "github.com/ctreminiom/go-atlassian/v2/jira/v2"
"log"
"os"
)
func main() {
var (
host = os.Getenv("HOST")
mail = os.Getenv("MAIL")
token = os.Getenv("TOKEN")
)
atlassian, err := v2.New(nil, host)
if err != nil {
return
}
atlassian.Auth.SetBasicAuth(mail, token)
fieldSchemes, response, err := atlassian.Issue.Field.Configuration.Scheme.Gets(context.Background(), nil, 0, 50)
if err != nil {
log.Fatal(err)
}
log.Println("HTTP Endpoint Used", response.Endpoint)
for _, scheme := range fieldSchemes.Values {
fmt.Println("-------------------")
fmt.Println("ID ", scheme.ID)
fmt.Println("Name ", scheme.Name)
fmt.Println("Description ", scheme.Description)
}
}Create Field Configuration Scheme
Get Field Configuration Scheme Mapping
Get Field Configuration Schemes by Project
Assign Field Configuration Scheme
Update Field Configuration Scheme
Delete Field Configuration Scheme
Assign issue types to field configuration
Remove issue types to field configuration
Last updated
Was this helpful?