# jira-ticket-manager

> A module to manage jira through apis

Latest version **1.0.2** (published 2023-05-03) · ISC license · 0 weekly downloads

## Install

```sh
npm install jira-ticket-manager
pnpm add jira-ticket-manager
yarn add jira-ticket-manager
bun add jira-ticket-manager
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2023-05-03 |
| First published | 2023-05-03 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 7.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Amir Khan |
| Maintainers | amirkpatna |

## Links

- npm: https://www.npmjs.com/package/jira-ticket-manager
- npm.io page: https://npm.io/package/jira-ticket-manager

## Dependencies (1)

- [axios](https://npm.io/package/axios.md) ^1.4.0

## Recent versions

- 1.0.2 (latest) — 2023-05-03
- 1.0.1 — 2023-05-03
- 1.0.0 — 2023-05-03

## README

# Jira Ticket Manager

It manages jira ticket creation, updation and fetch through simplified js functions.




 


## Module Reference

#### Create Jira Manager instance

```javascript
const domain = 'Your domain'
const emailId = 'Your email Id'
const apiKey = 'Your api Key'
const jiraManagerInstance = new JiraManager(domain,emailId,apiKey)
```

| Parameter | Type     | Description                |
| :-------- | :------- | :------------------------- |
| `domain` | `string` | **Required**. Your domain |
| `emailId` | `string` | **Required**. Your email id |
| `apiKey` | `string` | **Required**. Your api key |

#### Create Jira ticket config for new ticket creation

```javascript
const configs = jiraManagerInstance.createTicketConfigs();
const body = configs.addAssignee('your assignee user id')
   .addDevelopementOwnedBy('your user id')
   .addQaAssignee('Qa assignee user id')
   .addOwningTeam('Owning team id')
   .addDescription('some description')
   .addIssueType('issue type id')
   .addParentTask('parent task key i.e JIRA-123')
   .addReporter('reporter user id')
   .addPriority('priority i.e 1')
   .addProject('project id','project key')
   .addSummary('See me creating tickets')
   .build();
const res = await jiraManagerInstance.createJiraTicket(body);
```


#### Get Jira ticket

```javascript
const issueId = 'Your issue id'
const res = await jiraManagerInstance.getJiraIssue(issueId);
```

---
_Source: https://npm.io/package/jira-ticket-manager · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
