Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/dhyanio/go-jira

Go Jira Rest API client
https://github.com/dhyanio/go-jira

Last synced: 20 days ago
JSON representation

Go Jira Rest API client

Awesome Lists containing this project

README

        

# go-jira

## Golang jira library!

- Create New Jira issue
- Update existing jira issue

```golang
package main

import (
jiraUtil "github.com/dhyanio/go-jira"
)

func main() {
// Create Jira Issue
jiraRes, err := jiraUtil.CreateIssue(summary, resdes, "Task")
if err != nil {
return "", err
}

// Parse into JSON
jiraResJson, err := jiraUtil.ParseEvent(string(jiraRes))
if err != nil {
return "", err
}

// Get Jira TicketId/IssueId
ticketId := jiraResJson["key"].(string)
_, updateIssueErr := jiraUtil.UpdateIssue(ticketId)
if updateIssueErr != nil {
return "", updateIssueErr
}
}


```