To Associate Test Plan and Test Execution in JIRA COLUD

Danielpk.Karuppiah
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!
June 19, 2023

Hi Team,

I want to associate Test Execution to a Test Plan using API to my Jira in cloud. 

I followed the xray documentation to do this 
     https://docs.getxray.app/display/XRAY/Test+Plans+-+REST

Example Request:
curl -H "Content-Type: application/json" -X POST -u admin:admin --data @Example.json http://yourserver//rest/raven/1.0/api/testplan/TEST-123/testexecution

Example Json data.
{
"addTestsToPlan": false,
"add": [
"CALC-14",
"CALC-29"
],
"remove": [
"CALC-15",
"CALC-50"
]
}

Using the above, replaced my test plan, test execution and authentication details . 

I have confirmed the authentication, test plan and test execution details are given correct. However im getting 404 error.

response: b'{"message":"null for uri: https://{my server}.atlassian.net/rest/raven/1.0/api/testplan/{my test plan name}/testexecution","status-code":404}'

is the above API will work only for Jira Desktop ?
I have also noticed same kind of error few reported for this API in atlassian forums.


Please guide how can i associate Test execution to a Test Plan

 

 

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events