Just a heads up: On March 24, 2025, starting at 4:30pm CDT / 19:30 UTC, the site will be undergoing scheduled maintenance for a few hours. During this time, the site might be unavailable for a short while. Thanks for your patience.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

RestApi Auth using Javascript,WDIO,node js

CrazyAs5assin May 13, 2020

Hi , i am trying to upload Cucumber execution results back to Jira using Rest Api. I have previously used rest api using java to integrate with my selenium project. But in this organisation, i am using WDIO selenium with javascript . and jira is jira cloud along with single signon. I am not sure if i can use XMLHTTP request to connect with jira using my user name and Api token. 

Please suggest other ways if any to do it since i am new to nodejs and javascript

2 answers

0 votes
Nick Iles _AssertThat_
Contributor
May 17, 2020

Hi

As per the previous reply there are a couple of apps which will import cucumber executions into Jira.  Our plugin will do just this:

AssertThat BDD & Cucumber for Jira 

Please get in contact if you would like a demo or more information.

Thanks

Nick

0 votes
Alan Parkinson
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 13, 2020

Hi @CrazyAs5assin 

You should be able to use your email address and API token: for basic auth against the REST API according to this documentation. A few years I had written a few utility scripts using that mechanism.

As a BDD coach of ten years experience, I'm interested by the requirement to upload the Cucumber results to Jira. I normally recommend storing the results on the CI Server and linking the CI server to Jira via the excellent development tools panel on Issues. The Pannel then displays the overall build result as a pass or fail.

Another option that is going to be recommended by people is Apps. There may apps that integrate Jira and Cucumber on the Atlassian Marketplace. Disclosure, I apply my BDD coaching knowledge as the Product Manager for one of those apps; Behave Pro for Jira.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
atlassian, atlassian government cloud, fedramp, webinar, register for webinar, atlassian cloud webinar, fedramp moderate offering, work faster with cloud

Unlocking the future with Atlassian Government Cloud ☁️

Atlassian Government Cloud has achieved FedRAMP Authorization at the Moderate level! Join our webinar to learn how you can accelerate mission success and move work forward faster in cloud, all while ensuring your critical data is secure.

Register Now
AUG Leaders

Upcoming Jira Events