Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/dhyanio/go-jira
- Owner: dhyanio
- Created: 2021-01-09T07:16:41.000Z (almost 4 years ago)
- Default Branch: master
- Last Pushed: 2022-08-24T07:19:22.000Z (over 2 years ago)
- Last Synced: 2024-06-21T18:44:49.641Z (6 months ago)
- Language: Go
- Homepage:
- Size: 10.7 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# go-jira
## Golang jira library!
- Create New Jira issue
- Update existing jira issue```golang
package mainimport (
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
}
}
```