Forums

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

Is there a way to retrieve labels of jira testplan through restapi by passing testplan id to restapi

Girish Durga Prasad Perumalla February 7, 2025

I tried below both requests in postman with both api/2/issue and api/3/issue

 

https://abcd.jira.com/rest/api/2/issue/Test-12345?fields='Labels'

https://abcd.jira.com/rest/api/2/issue/Test-12345?fields=labels

 

 

And i don't get any response with status 200OK

1 answer

0 votes
Nikola Perisic
Community Champion
February 7, 2025

Welcome @Girish Durga Prasad Perumalla 

  • To retrieve the labels from your Jira cloud instance, you can use this endpoint: /rest/api/3/label
  • Make sure that for your authentication you are using your email and the Atlassian API key

From the official documentation there is only the option to get all of the labels which is with the endpoint that I have posted above.

Girish Durga Prasad Perumalla February 7, 2025

yes @Nikola Perisic i am able to retrieve labels using /rest/api/3/label but i want to get labels of a Jira Testplan in the project.

Nikola Perisic
Community Champion
February 7, 2025

@Girish Durga Prasad Perumalla  Since test plans are all about QA, is this for Xray, Zephyr, which one?

Girish Durga Prasad Perumalla February 7, 2025

It is for xray..

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
STANDARD
TAGS
AUG Leaders

Atlassian Community Events