Library client api jira
npm install library-jiraJira-api-client
=========
A small library that create a client of jira
shell
$ npm install library-jira
`
Usage ##
`shell
$ export JIRA_SERVER=https://example.com
$ export JIRA_PROJECT_ID=xxxxx
$ export JIRA_USERNAME=username_credential
$ export JIRA_PASSWORD=password_credential
$ export JIRA_EXECUTION_ENVIRONMENT=environment
`
`javascript
// With ES5
const { createIssueTestPlan } = require('library-jira');
// With ES6
import { createIssueTestPlan } from "library-jira";
// Initialize
createIssueTestPlan('Title of test plan');
createIssueExecutionTest('Title of test execution');
linkTestCaseToTestPlan('Number of Test case', 'Test plan key');
linkTestCaseToTestExecution('Number of Test case', 'Test execution key');
linkTestPlanToTestExecution('Number of Test plan', 'Test execution key');
updateTestCaseExecution('Number of Test case', 'Test execution key', 'Test plan key', 'State of result test');
setStateIssue('Number issue', 'Number of transicion');
getTestRun('Number of Test case', 'Test execution key');
linkIssue('Test execution key','Issue key');
attachFileToTestRun('ID number of test run', 'File path', 'Name of file to be uploaded', 'File Content Type')
`
Tests
npm test`