Categorygithub.com/dvsnin/yandex-tracker-go
modulepackage
1.0.4
Repository: https://github.com/dvsnin/yandex-tracker-go.git
Documentation: pkg.go.dev

# README

Yandex.Tracker API in Go

This is the original Yandex.Tracker library for Go.

Install

go get -u github.com/dvsnin/yandex-tracker-go

Example

Getting ticket and 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.GetTicket("TICKET KEY")
    if err != nil {
    	fmt.Printf("%v\n", err)
        return
    }
    fmt.Printf("%s\n", ticket.Description())
}

Edit ticket fields

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())
}

Contributing

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.

License

This project is licensed under the MIT License - see the LICENSE.md file for details

# Functions

No description provided by the author

# Structs

Basic Issue structure in Yandex.Tracker.
BasicPriority https://cloud.yandex.ru/en/docs/tracker/concepts/issues/get-issue#priority.
No description provided by the author
No description provided by the author
Status https://cloud.yandex.ru/en/docs/tracker/concepts/issues/get-issue#status.
User Basic user structure in Yandex.Tracker.
https://cloud.yandex.ru/en/docs/tracker/concepts/issues/create-issue.
No description provided by the author
Issue structure in Yandex.Tracker https://cloud.yandex.ru/en/docs/tracker/concepts/issues/get-issue.
IssueType https://cloud.yandex.ru/en/docs/tracker/concepts/issues/get-issue#type.
No description provided by the author
Priority https://cloud.yandex.ru/en/docs/tracker/concepts/issues/get-priorities.
User structure in Yandex.Tracker https://cloud.yandex.ru/en/docs/tracker/get-user-info.

# Interfaces

No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author