jira-create-issue
v1.0.2
Published
A simple npm package for creating issues in Jira via API
Readme
jira-create-issue
A small npm package for creating issues in Jira using the Jira REST API.
Prerequisites
- Node.js (v14 or higher recommended)
- Jira API credentials (
CLIENT_ID,CLIENT_SECRET) - A Jira instance with the necessary project access and permissions
Installation
Clone or download the repository.
Install dependencies:
npm install
Usage Step 1: Set up environment variables Before running the script, set the following environment variables in your terminal or create a .env file in the root of your project:
export CLIENT_ID=
export CLIENT_SECRET=
export BASE_URL=
export SUMMARY="Test Issue Summary"
export DESCRIPTION="This is a detailed description of the issue."
export PROJECT_KEY=
CLIENT_ID: Your Jira client ID or API token.
CLIENT_SECRET: Your Jira client secret (or API token).
BASE_URL: The base URL for your Jira instance (e.g., https://yourcompany.atlassian.net).
SUMMARY: A brief summary of the issue.
DESCRIPTION: A detailed description of the issue.
PROJECT_KEY: The Jira project key to associate the issue with.
Step 2: Run the script To create an issue in Jira, run the following command:
node index.js
