
๐ฏIssue Type
Get workflow for issue type in workflow scheme
package main
import (
"context"
"fmt"
v3 "github.com/ctreminiom/go-atlassian/v2/jira/v3"
"log"
"os"
)
func main() {
var (
host = os.Getenv("HOST")
mail = os.Getenv("MAIL")
token = os.Getenv("TOKEN")
)
instance, err := v3.New(nil, host)
if err != nil {
log.Fatal(err)
}
instance.Auth.SetBasicAuth(mail, token)
instance.Auth.SetUserAgent("curl/7.54.0")
mapping, response, err := instance.Workflow.Scheme.IssueType.Get(context.Background(), 10002, "10007", false)
if err != nil {
if response != nil {
log.Println(response.Bytes.String())
log.Println(response.Code)
}
log.Fatal(err)
}
fmt.Println(mapping)
}Set workflow for issue type in workflow scheme
Delete workflow for issue type in workflow scheme
Get issue types for workflows in workflow scheme
Set issue types for workflow in workflow scheme
Delete issue types for workflow in workflow scheme
Last updated
Was this helpful?