Forums

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

Get the fields in the Steps belong a Test Case by REST API

Le Nguyen June 21, 2019

Hi,

I have the test case, and a test case has many steps on this, each step, it has the Action, Input Data, Expected result and Status, I was using rest/api/2/field to get all fields, but I cannot find the above these fields. Could you please advise?

Anyelse encountered this case?

Please see the screenshot

2019-06-21_17-18-40.png

2 answers

1 accepted

0 votes
Answer accepted
Marcin Żurawiecki
Atlassian Partner
June 24, 2019

Hello Le,

You can get all the data from the issue using /rest/api/2/issue/{issueIdOrKey}. This method will return a JSON file and the Steps field will also be included in it.

Kind regards,
Marcin, TestFLO Team

Le Nguyen June 24, 2019

Hello Marcin,

Thank you very much for helping. I can get the field also.

Dnyaneshwar Shelke
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 12, 2020

I am using the /rest/api/2/issue/{issueIdOrKey}. I got all other details but did not got Test Step, Test Data, Expected Result field which I was looking for. Not sure if anyone else is facing this issue. Can someone help me on this?

Like Thomas ROBINE likes this
Jevgenij Huebert-Weizenegger
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!
February 5, 2021

I also cant get the test steps....

Like Thomas ROBINE likes this
sireesha Penumatsa September 11, 2023

Hi I am also not able to find test steps. Can someone help me on this

0 votes
David Bakkers
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.
June 6, 2024

For anyone else who stumbles on this thread while looking for a way to read test STEPS and other data from a test CASE, be aware that the answer provided to the original poster of the question is only valid if you are using TestFLO as your test management tool and it is installed on Jira Server or Jira Data Center.

If are using some other third party test management tool, such as X-Ray, with Jira (Cloud, Server or Data Center platforms) then Jira's REST API can only provide information to the test case level, since test cases are just a type of Issue. To get information about the test steps or other data within a test case, you must use the REST API of your installed test management tool.

Suggest an answer

Log in or Sign up to answer