https://github.com/junkpiano/gojira
Jira Client in Go
https://github.com/junkpiano/gojira
atlassian cui golang jira jira-rest-api
Last synced: 4 months ago
JSON representation
Jira Client in Go
- Host: GitHub
- URL: https://github.com/junkpiano/gojira
- Owner: junkpiano
- License: mit
- Created: 2019-08-27T06:09:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2025-06-03T00:53:48.000Z (about 1 year ago)
- Last Synced: 2025-06-03T15:50:26.198Z (about 1 year ago)
- Topics: atlassian, cui, golang, jira, jira-rest-api
- Language: Go
- Size: 48.8 KB
- Stars: 3
- Watchers: 2
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Gojira
==================
## Usage
### Authentication
Register credential in the environmental variables.
```bash
export GOJIRA_BASEURL=http://yourjira.com/
export GOJIRA_USERNAME=xxx.yyyy
export GOJIRA_PASSWORD=qwertyasdfgh
```
That's it. gojira reads that information on the fly.
### Search issues
```bash
gojira issues --jql "project=Awesome and status=Open"
```
```bash
gojira issues --issue AWESOME-123
```
### Transition issues
#### List of transitions
```bash
gojira transition --jql "project=Awesome and status=Open" --list
```
```bash
gojira transition --jql "project=Awesome and status=Open" --list --comment text
```
#### Perform transition
```bash
gojira transition --jql "project=RAwesome and status=Open" --action 111 # 111 is ID of the next lane.
```
```bash
gojira transition --jql "project=RAwesome and status=Open" --action 111 --comment text # 111 is ID of the next lane.
```
### Issue Assigning
#### Assign
```bash
gojira assignee --issue Awesome-1234 --user username
```
```bash
gojira assignee --jql "project=RAwesome and status=Open" --user username
```
#### Assign back to the reporter
```
gojira assignee --issue Awesome-1234 --reporter
```
```bash
gojira assignee --jql "project=RAwesome and status=Open" --reporter
```
### Update issues
#### Update
As of payload spec, please find your edition from [this page](https://developer.atlassian.com/server/jira/platform/rest-apis/).
This tool uses `Edit issue` API.
```bash
gojira update --issue AWESOME-123 --payload ""
```
```bash
gojira update --jql "project=RAwesome and status=Open" --payload ""
```
## Installation
### Download Binary
Download from [here](https://github.com/junkpiano/gojira/releases)
### Docker
```
docker run --rm ghcr.io/junkpiano/gojira:latest
```