I want to create an issue in Jira via jira-connect IssueType: XRAY TEST I want to add the Test Type as Cucumber
const JiraClient = require("jira-connector");
const createStory = async () => {
try {
// Create Client
const jira = new JiraClient({
host: "XXX.atlassian.net",
basic_auth: {
email: "xxxx@yyy.in",
api_token: "XxxxxxxxxxX"
}
});
// Create ISSUE
const res = await jira.issue.createIssue(
{
fields: {
project: {
key: 'PRO'
},
summary: "SDK POST 91",
description: "Something goes here !!!!",
issuetype: { name: 'Xray Test' },
labels: [
"test_report",
"automation"
],
},
}
);
console.log(res)
return res
} catch (error) {
console.log(error);
throw error
}
}
createStory()
I want to add test type: Cucumber