https://github.com/sgreben/jira-project-export
Export issues and metadata for a single JIRA project as JSON.
https://github.com/sgreben/jira-project-export
export jira json project single
Last synced: about 1 year ago
JSON representation
Export issues and metadata for a single JIRA project as JSON.
- Host: GitHub
- URL: https://github.com/sgreben/jira-project-export
- Owner: sgreben
- License: unlicense
- Created: 2017-12-12T22:58:19.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-02-26T20:58:10.000Z (over 8 years ago)
- Last Synced: 2025-03-31T01:12:16.427Z (about 1 year ago)
- Topics: export, jira, json, project, single
- Language: Shell
- Homepage:
- Size: 3.91 KB
- Stars: 20
- Watchers: 2
- Forks: 10
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jira-project-export
A little shell script to extract issues and metadata for a JIRA project as JSON. If you just want to copy&paste the API call, look [here](https://github.com/sgreben/jira-project-export/blob/master/export.sh#L112) (everything else is parsing CLI args)
## Prerequisites
- `curl`
- `jq`
- Your JIRA server's REST API must be accessible.
## Example
```bash
$ ./export.sh -auth=user:pass -url=https://localhost/jira -project=ABC -export=issues
{
"expand": "schema,names",
"startAt": 0,
"maxResults": 123,
"total": 123,
"issues": [
...
]
}
```
## Usage
```text
Usage:
export.sh -auth=USER:PASS -url=URL -project=PROJECT -export=[issues|meta]
Options:
-h | -help
Print the help text.
-auth=USER:PASS
JIRA authentication (username, password).
-url=URL
JIRA server URL (including protocol, e.g. https://).
-project=PROJECT
JIRA project key.
-export=issues
Export the given project's issues as JSON to stdout.
-export=meta
Export the given project's metadata as JSON to stdout.
```