This is the original Yandex.Tracker library for Go.
go get -u github.com/dvsnin/yandex-tracker-go
import (
"fmt"
"github.com/dvsnin/yandex-tracker-go"
)
func main() {
client := tracker.New("YOUR YANDEX.TRACKER TOKEN", "YOUR YANDEX ORG_ID")
ticket, err := client.GetTicket("TICKET KEY")
if err != nil {
fmt.Printf("%v\n", err)
return
}
fmt.Printf("%s\n", ticket.Description())
}
import (
"fmt"
"github.com/dvsnin/yandex-tracker-go"
)
func main() {
client := tracker.New("YOUR YANDEX.TRACKER TOKEN", "YOUR YANDEX ORG_ID")
ticket, err := client.PatchTicket("TICKET KEY", map[string]string{"TICKET FIELD": "NEW VALUE"})
if err != nil {
fmt.Printf("%v\n", err)
return
}
fmt.Printf("%s\n", ticket.Description())
}
You are more than welcome to contribute to this project. Fork and make a Pull Request, or create an Issue if you see any problem.
This project is licensed under the MIT License - see the LICENSE.md file for details