Forums

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

How I can get all folders and test cases from JIRA RTM using rest API, I can't find any rest API

Abdullah Younis November 9, 2024

 

How I can get all folders and test cases from JIRA RTM using rest API, I can't find any rest API to get all details for this point, I need to retrieve all data about test cases section 

2 answers

Suggest an answer

Log in or Sign up to answer
0 votes
Humashankar VJ
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.
November 10, 2024

Hi @Abdullah Younis 

To integrate with JIRA RTM via REST API, Below are the key considerations 

RTM's REST API uses distinct base URLs for US/Global and EU data residency

https://rtm-api.hexygen.com/api

https://rtm-eu-api.hexygen.com/api - respectively.

Authentication requires a Bearer Token generated within the RTM app in Jira.

For retrieving test cases and folders, utilize the "Tree Structure" endpoint, and for specific test case details, use the "Test Case" endpoint. To implement, follow these steps:

 

  1. Generate an API token from the RTM app in Jira.
  2. Use the correct base URL based on your data residency.
  3. Make API calls to endpoints like GET

including your Bearer Token.

We have to research on the RTM's detailed API user guide within Jira or we have to work with Deviniti support for specific endpoint information. Additionally, leverage the "Test Key" feature for object identification.

Implementation details may vary depending on your RTM version and API access level.

Hope this helps - Happy to help further!!
Thank you very much and have a great one!
Warm regards

Abdullah Younis November 11, 2024

Hi , 
the idea is a great if I can work with it, 

but always when try to hit endpoint you have provided above, I have received 401 while I have pass TOKEN with different ways through Headers or Auth 
look at SS attached please if you can help me
3.png 

Like Humashankar VJ likes this
Humashankar VJ
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.
November 11, 2024

@Abdullah Younis 

The 401 error you're encountering indicates an unauthorized access attempt, likely due to incorrect authentication. To resolve this issue, follow these troubleshooting steps.

  • First, verify that you're using a valid API token, which is distinct from your Jira password. If necessary, generate a new token by visiting ( https://id.atlassian.com/manage/api-tokens), clicking "Create API token," and copying the token immediately.
  • Next, ensure you're using Basic Authentication with your email and API token. The Authorization header should resemble
  • Authorization: Basic <base64-encoded-credentials>," where <base64-encoded-credentials> is the Base64 encoding of your-email@(Authorization: Basic <base64-encoded-credentials>)your-api-token.

Furthermore, confirm you're using the correct API endpoint. Note that the RTM API is separate from the standard Jira API. Unfortunately, the RTM app's public API documentation is limited.

The RTM app does have a REST API, although its scope may be restricted. The endpoint structure is not publicly documented but is likely similar to https://<your-jira-instance> (https://<your-jira-instance>.atlassian.net/rest/rtm/1.0/). The API should enable basic operations on RTM objects like requirements, test cases, and folders.

To learn more- About - Requirements and Test Management for Jira

0 votes
Valerie Knapp
Community Champion
November 10, 2024

Hi @Abdullah Younis , welcome to the Atlassian Community and thanks for your question. 

Please can you clarify, is this the app you're referring to? https://marketplace.atlassian.com/apps/1220294/requirements-test-management-for-jira 

If so, I would recommend you check the product documentation here, if you haven't already done that - https://deviniti.com/support/addon/cloud/requirements-test-management/latest/overview/ 

If you have already checked the documentation and you don't find the information you're looking for, please open a support ticket to the vendor, who should be able to help -https://marketplace.atlassian.com/apps/1220294/requirements-test-management-for-jira 

Best wishes

Abdullah Younis November 11, 2024

Hi, 

Yes I have checked and read before, 

but this doc doesn't support what I'm asking for, in the documentation always ask for test case id, I don't need to pass it

I'm asking for endpoint to return folders and another one for test cases or one endpoint for both of them, 

for last point regarding to open ticket, I don't know should open ticket for jira team in my company or to Atlassian team if Atlassian team could you please provider the link for me

thanks for your replay

Like Humashankar VJ likes this
Humashankar VJ
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.
November 11, 2024

Hi @Abdullah Younis 

You can also work with your organization if they have JIRA Admins for support - They able to help you with.

At the same time to learn more - you can also work with Atlassian support, Atlassian support is external support !!

Best Regards

Abdullah Younis November 11, 2024

Hi @Humashankar VJ , 
Thanks for your reply and your support.

 

 

Best Regards.

Like Humashankar VJ likes this
TAGS
AUG Leaders

Atlassian Community Events