Forums

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

How to get ALL Projects using RestAPI Using AJAX?

RameshLakshman August 17, 2019

get all project using rest API and load all project name in Dropdown

1 answer

1 accepted

0 votes
Answer accepted
DPKJ
Community Champion
August 17, 2019

Here is a link to API you need, https://docs.atlassian.com/software/jira/docs/api/REST/8.3.2/#api/2/project-getAllProjects

If you are doing it inside JS file,

AJS.$.ajax({
  url: "/rest/api/2/project",
  type: "GET",
  dataType: "json",
  success: function(data) {
    console.log(data); // data here is array of project.
  }
});

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events