Forums

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

Get Test Case Steps from Issue using REST API

caspar
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!
May 27, 2024

 

Hi everyone,

I'm trying to access the Test Case Steps from an issue in my Jira project using the REST API endpoint:

 

/rest/api/2/issue/{issue_key}
While I'm able to retrieve the general issue details such as description, labels, and components, the Test Case Steps field is not included in the response. I've verified that the field is populated in the Jira UI.
Please help me with this.

1 answer

0 votes
Sunny Ape
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 27, 2024

Hello @caspar 

You're seem to be confusing Jira with the tool that has been installed that is providing the test management capabilities.

If you're using something like XRay, you have to use its REST API to access the test steps that are within the test case.

Adam Sandman
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!
November 7, 2024

Actually the OP is correct, with XRay Server (now DataCenter) there is a separate REST API for accessing test steps. For XRay Cloud they don't have a separate REST API for accessing test steps. So the question is valid, is there a way to get the test steps via. the Jira REST API, perhaps as sub-tasks of the test case issue?

Suggest an answer

Log in or Sign up to answer