Skip to content

ngsru/go-jira

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 

Repository files navigation

Intro

go-jira it's package to work with Atlassian Jira written in Go

The package has a low functionality, because it was done for specific tasks.

Usage

// creating a Jira Client instance:
jira, err := new jira.NewClient("http://jira.local/", "username", "password", 15*time.Second)
if err != nil {
    //catch
}
[..]

//find issue by key (PROJECT-1234) with some fields (may be custom)
issue, err := jira.GetIssue("PROJECT-1234", []string{"summary"})
if err != nil {
    //catch
    panic(err)
}
fmt.Printf("%+v", issue)

[..]

//and comment 'hello world'
err := jira.Comment("PROJECT-1234", "Hello World!")
if err != nil {
    //catch
}

[..]

//go-jira also can get project title
title, err := jira.GetProjectTitle("PROJECT")
if err != nil {
    //catch
}
fmt.Printf("PROJECT title: %s", title)

Soon there will be more functional and will be more complete README.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages