qansigliere-jira-api-integration
Version:
The main idea of this library created in the JavaScript language is to provide a ready-made set of API methods for integration with JIRA
110 lines (70 loc) • 2.56 kB
Markdown
The main idea of this library created in the JavaScript language is to provide a ready-made set of API methods for
integration with JIRA
https://www.youtube.com/@QANSIGLIERE/
https://buymeacoffee.com/qansigliere
Using npm `npm i qansigliere-jira-api-integration`
Create any \*.env file (like `jira.env`) and write the following information in the created file
```
export JIRA_URL="__YOUR_JIRA_URL__"
export JIRA_USERNAME="__YOUR_JIRA_EMAIL__"
export JIRA_APIKEY="__YOUR_JIRA_APIKEY__"
```
Just run in the terminal the following command: `source yourfile.env`
```
var { JIRA_API } = require('qansigliere-jira-api-integration');
(async function Demo() {
let new_integration = new JIRA_API();
let resp = await new_integration.download_search_jql('STATUS CHANGED AFTER -2W ORDER BY created DESC');
console.log(JSON.stringify(resp));
})();
```
JIRA documentation is present
[](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-search/#api-group-issue-search)
```
let new_integration = new JIRA_API();
let resp = await new_integration.download_search_jql('STATUS CHANGED AFTER -2W ORDER BY created DESC');
```
JIRA documentation is present
[](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issues/#api-group-issues)
```
let new_integration = new JIRA_API();
let resp = await new_integration.get_issue('10178');
```
JIRA documentation is present
[](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-fields/#api-group-issue-fields)
```
let new_integration = new JIRA_API();
let resp = await new_integration.get_field();
```
JIRA documentation is present
[](https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-users/#api-group-users)
```
let new_integration = new JIRA_API();
let resp = await new_integration.get_all_users();
```
```
let new_integration = new JIRA_API();
let resp = await new_integration.get_all_users_by_default();
```
- https://www.youtube.com/live/KxL0Eg5wmJU?si=W_vYh5f2prU6bBkA
https://forms.gle/GZbS9hw42tSYJxKL7