Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature #3

Draft
wants to merge 23 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from 21 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@

# Query Jira API for Issues and Upload to BigQuery

This project pulls all issue data for a given project from the Jira API and formats it into a usable object, then checks BigQuery for a matching table, if the table exists it deletes it and then creates a new table with the newly pulled data.


### How To:

1. Clone repo
2. Install dependencies ('npm i' in terminal)
3. Create a .env file with proper credentials in the repo root

Your. env file should be in this format:

ATLASSIAN_USERNAME = (Your Username)
ATLASSIAN_API_KEY = (Your Api Key)
DOMAIN = (Your Domain)

4. Install gcloud CLI (instructions here: https://cloud.google.com/sdk/docs/install)
5. Set up gcloud with proper authorization for your BigQuery project (instructions here: https://cloud.google.com/sdk/docs/authorizing)
6. Create a new BigQuery dataset that you want to house your issues in
7. Run the typescript compiler ('tsc' in terminal)


Once all this is done, the app.js file in the dist folder is ready to be run, you can run it with this terminal command:

'node app.js (Your BigQuery Dataset) (Your Jira Project Name)'

The BigQuery dataset is the one you made in step 6, and the Jira project is the ID of the project (i.e. 'Implemented Today' = 'IT')
Loading