Forums

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

how to retrieve labels for a project based on projectId/projectKey using jira API?

Peter March 3, 2021

Hi, Can someone share details on how to retrieve labels related to particular project, based on projectID or project Key.

 

Thanks.

1 answer

1 accepted

1 vote
Answer accepted
Fabio Racobaldo _Herzum_
Community Champion
March 3, 2021

Hi @Peter ,

unfortunately labels are not associated to a specific project. In order to retrieve labels used in a specific project you could retrieve via REST API (BASEURL/rest/api/2/search?jql=YOUR_JQL_HERE) all issues in a project with labels and collect them.

Fabio

Peter March 3, 2021

Hi Fabio. Thanks for your response. JQL works. Wanted to check if there is a way to retrieve data based on project.

Thanks!!

Suggest an answer

Log in or Sign up to answer