|
1 |
| -# JavaScript JIRA API Client |
| 1 | +# JavaScript / TypeScript JIRA API Client |
2 | 2 |
|
3 |
| -A JavaScript/TypeScript wrapper for the JIRA REST API |
| 3 | +A JavaScript / TypeScript wrapper for the JIRA REST API |
4 | 4 |
|
5 | 5 | [](https://www.npmjs.com/package/jira.js)
|
6 | 6 | [](https://npmjs.com/jira.js)
|
@@ -28,21 +28,27 @@ yarn add jira.js
|
28 | 28 | ### Create the JIRA client
|
29 | 29 |
|
30 | 30 | ```js
|
31 |
| -// ES5 |
32 |
| -var { Client } = require("jira.js"); |
33 |
| - |
34 |
| -// ES6 |
35 | 31 | import { Client } from "jira.js";
|
36 | 32 |
|
37 | 33 | // Initialize
|
38 |
| -var client = new Client({ |
| 34 | +const client = new Client({ |
39 | 35 | host: "https://jira.somehost.com"
|
40 | 36 | });
|
41 | 37 | ```
|
42 | 38 |
|
43 |
| -### Get all projects |
| 39 | +### Working with API (How to get a list of all projects, for example) |
44 | 40 |
|
45 | 41 | ```js
|
| 42 | +// Callbacks |
| 43 | +client.projects.getAllProjects({}, (err, data) => { |
| 44 | + if (err) { |
| 45 | + throw err; |
| 46 | + } |
| 47 | + |
| 48 | + console.log(data); |
| 49 | +}); |
| 50 | + |
| 51 | + |
46 | 52 | // ES5/ES6
|
47 | 53 | client.projects
|
48 | 54 | .getAllProjects()
|
@@ -165,15 +171,29 @@ const client = new Client({
|
165 | 171 |
|
166 | 172 | ## Documentation
|
167 | 173 |
|
| 174 | +Library based on [Jira API v2](https://developer.atlassian.com/cloud/jira/platform/rest/v2) and [Jira Agile API](https://developer.atlassian.com/cloud/jira/software/rest) |
| 175 | + |
168 | 176 | Can't find what you need in the readme? Check out our documentation here: https://mrrefactoring.github.io/jira.js/
|
169 | 177 |
|
| 178 | +## Contributors |
| 179 | + |
| 180 | +[<img alt="MrRefactoring" src="https://avatars0.githubusercontent.com/u/10329528?v=4&s=117 width=117">](https://github.com/MrRefactoring) |[<img alt="Swapnull" src="https://avatars0.githubusercontent.com/u/4456346?v=4&s=117 width=117">](https://github.com/Swapnull) |[<img alt="violine1101" src="https://avatars0.githubusercontent.com/u/12451842?v=4&s=117 width=117">](https://github.com/violine1101) | |
| 181 | +:---:|:---:|:---:| |
| 182 | +[MrRefactoring](https://github.com/MrRefactoring)|[Swapnull](https://github.com/Swapnull)|[violine1101](https://github.com/violine1101)| |
| 183 | + |
170 | 184 | ## Road map
|
171 | 185 |
|
172 |
| -- Response models |
173 |
| -- Method names reducing |
| 186 | +- Response models ([Check 2.0 version PR](https://github.com/MrRefactoring/jira.js/pull/76)) |
| 187 | +- Method names reducing ([Check 2.0 version PR](https://github.com/MrRefactoring/jira.js/pull/76)) |
174 | 188 |
|
175 | 189 | ## Latest version changelog
|
176 | 190 |
|
| 191 | +### 1.7.3 |
| 192 | + |
| 193 | +- DEPENDENCIES: `atlassian-jwt` installed from npm instead git |
| 194 | +- DEPENDENCIES: Updated dependencies versions |
| 195 | +- README: Contributors section added, small redesign |
| 196 | + |
177 | 197 | ### 1.7.2
|
178 | 198 |
|
179 | 199 | - FIX: console.log removed
|
|
0 commit comments