Jira client written in Go.
Go to file
Jasper Bok dbe986d2cb Add `README.md` 2023-07-17 21:16:28 +02:00
README.md Add `README.md` 2023-07-17 21:16:28 +02:00
client.go Add the `JiraClient.Search()` method 2023-07-17 20:34:29 +02:00
client_test.go Add the `JiraClient` type 2023-07-14 19:09:20 +02:00
comment.go Add `Updated` and `UpdateAuthor` fields to `Comment` 2023-07-14 19:09:20 +02:00
go.mod Change domain in `go.mod` 2023-07-17 21:11:48 +02:00
issue.go Add the `Issue` type 2023-07-14 19:09:20 +02:00
project.go Add the `Project` type 2023-07-14 19:09:20 +02:00
time.go Add custom `Time` type to unmarshal Jira's times 2023-07-14 19:09:20 +02:00
user.go Add the `User` type 2023-07-14 19:09:20 +02:00

README.md

Jira Client

A small and very incomplete Jira client library.

Installation

go get git.jasperbok.nl/jasperbok/jiraclient.git

Usage

package main

import (
	"fmt"
	"log"
	"git.jasperbok.nl/jasperbok/jiraclient.git"
)

jira := jiraclient.NewJiraClient("username", "token", "atlassian.net_subdomain")
issue, err := jira.GetIssue("ABC-12")
if err != nil {
	log.Fatal(err)
}
fmt.Printf("%s\n", issue.Summary)

API

NewJiraClient(string, string, string) JiraClient

JiraClient.GetIssue(string) (Issue, error)

JiraClient.GetProject(string) (Project, error)

JiraClient.Search(string) ([]Issue, error)