Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to add test type: Cucumber to JIRA Issue created via REST API

musakhair
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
April 20, 2022

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

1.png

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events