Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/c9s/jira.sh
JIRA Client for Bash Scripts
https://github.com/c9s/jira.sh
bash jira
Last synced: 6 days ago
JSON representation
JIRA Client for Bash Scripts
- Host: GitHub
- URL: https://github.com/c9s/jira.sh
- Owner: c9s
- Created: 2018-05-11T08:12:12.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2018-05-15T06:38:22.000Z (over 6 years ago)
- Last Synced: 2024-10-29T10:01:25.461Z (16 days ago)
- Topics: bash, jira
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 18
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jira.sh
JIRA Client for shell scripts.
## Setting up
Go to your profile to get an API token
:```sh
export JIRA_USER="[email protected]"
export JIRA_PASS="your-token-here"export JIRA_DOMAIN="yoursite.atlassian.net"
export JIRA_PROJECT_CODE="ST"
```## Source Library
```sh
source jira.sh
```## Using Functions
Add comment to an issue:
```sh
jira:issue_add_comment "AA-999" "Hello World"
```Check if an issue is sub-task:
```sh
if [[ $(issue_is_subtask "AA-999") == "true" ]] ; then
echo "is subtask"
if
```Get available transitions of an issue:
```sh
jira:issue_get_transitions "AA-999"
```Do the transition of an issue:
```sh
jira:issue_do_transition "$issue_key" "$tx_id"
```