
๐Boards
A board displays issues from one or more projects, giving you a flexible way of viewing, managing, and reporting on work in progress.
Get issues for backlog
package main
import (
"context"
"github.com/ctreminiom/go-atlassian/jira/agile"
"github.com/ctreminiom/go-atlassian/pkg/infra/models"
"log"
"os"
)
func main() {
var (
host = os.Getenv("HOST")
mail = os.Getenv("MAIL")
token = os.Getenv("TOKEN")
)
atlassian, err := agile.New(nil, host)
if err != nil {
return
}
atlassian.Auth.SetBasicAuth(mail, token)
atlassian.Auth.SetUserAgent("curl/7.54.0")
var (
options = &models.IssueOptionScheme{
JQL: "project = KP",
ValidateQuery: true,
Fields: []string{"status", "issuetype", "summary"},
Expand: []string{"changelog"},
}
boardID = 4
startAt = 0
maxResult = 50
)
issues, response, err := atlassian.Board.Backlog(context.Background(), boardID, startAt, maxResult, options)
if err != nil {
if response != nil {
log.Println("Response HTTP Response", string(response.Bytes.Bytes()))
}
log.Fatal(err)
}
log.Println("Response HTTP Code", response.Code)
log.Println("HTTP Endpoint Used", response.Endpoint)
for _, issue := range issues.Issues {
log.Println(issue.Key)
}
}Get configuration
Create board
Get epics
Get board by filter id
Get board
Get issues for board
Get board issues for epic
Get board issues for sprint
Get issues without epic for board
Move issues to backlog for board
Get projects
Get all sprints
Get all versions
Delete Board
Get Boards
Last updated
Was this helpful?