Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Unable to fetch a story with its associated test cases using REST API in JIRA's cloud

Hi,

Using REST API, i can able to fetch issue of type "Story" by using the below URI:

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

 

But the response JSON does not have the Test Cases details associated with respect to the fetched issue of type "Story".

I am able to fetch the issues of type "Test Cases" with the separate request, but how can i map with its associated "Story"

 

Thanks,

1 answer

Hi @Mohamed Benziane,

Actually i am unclear with the term "Epic" used in the web page you have shared. 

My issue is ,i have created a "Story" with some "Test Cases". How to retrieve those test cases using the REST API.

 

Please help me understand the concept.

 

Regards,

Hi @susee_jeeva

The parent are the test cases ?

 

Regards

Hi @Mohamed Benziane,

 

The scenario is, under a story S1, i have created two test cases (T1 and T2). So, in this case the story S1 is the parent right?

So, when i fetch story S1, i expect the test cases must also be fetched. But it is not.

And, all Sub-Tasks associated with the S1 is fetched correctly.

Hi @Mohamed Benziane,

I have created a 'Story' with 3 Test Cases associated.

But, when i fetch the Story with its Key through REST API, i could not find the information of Test Cases associated.

How can i get the information of Test Cases?

 

Waiting for your response.

Thanks,

Susee

Hi @Mohamed Benziane,

Actually we have integrated Qmetry with JIRA. So, i guess Test Case, Test Run and Test Scenario is extended from Qmetry.

Thanks,

Hello @susee_jeeva

 

I don't have this addon but you can take a look at this documentation:

https://qmetrysupport.atlassian.net/wiki/spaces/QES/pages/32735628/Integration+through+QMetry+Web+Services+APIs

Look for QMetry 7 API Document 

 

I will suggested you to maybe try this:

Capture.PNG

Hope this helps

Regards

Hi @Mohamed Benziane,

But what is the base url to access the Qmetry's REST APIs. When i try to use JIRA's base url, it does not work.

 

Thanks,

Hi @Mohamed Benziane,

 

Thanks for your information and quick support. We were able to fetch all our needful information.

 

Best Regards,

Susee

Hi @susee_jeeva

Could you please help me with the issue. I am still not able to see test steps of a test case when i tried to get through Jira Rest API

Sample Rest API: https://<jira-name>.atlassian.net/rest/api/latest/issue/TES-2

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Jira Core

How to manage many similar workflows?

I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...

3,881 views 11 5
Join discussion

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you