Forums

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

How to change the JIRA project status automatically when executing the eclipse (Selenium JAVA)

Deepak Ratan February 6, 2019

I have mentioned below my sample code.

Scenario: When the output get success by automatically JIRA should change the status.

Whether its possible ?

How to do it ? Please provide me an sample code

 

import org.openqa.selenium.By;
import org.testng.annotations.Test;

import com.BrandCrock.base.TestBase;

public class Phaseone extends TestBase {
@techoneway
public void placeorder(){
driver.findElement(By.id(OR.getProperty("chooseseparadiobutton"))).click();
driver.findElement(By.id(OR.getProperty("enteriban"))).sendKeys("DE24300209002411761956");
driver.findElement(By.xpath(OR.getProperty("proceedsepaorder"))).click();
driver.findElement(By.id(OR.getProperty("confirmthesepaorder"))).click();
}
}

1 answer

0 votes
Sreenivasaraju P
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.
February 6, 2019

Hi @Deepak Ratan,

You can do this through REST call.

/rest/api/2/issue/{issueIdOrKey}/transitions

Refer for more details. https://docs.atlassian.com/software/jira/docs/api/REST/7.6.1/#api/2/issue-doTransition

Suggest an answer

Log in or Sign up to answer