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();
}
}
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.