GET Project API

What is the SQL query that gets triggered in the backend when we run the GET Project API call?

1 answer

0 votes

Quite possibly nothing, if the data you're asking for is indexed.  You could have a look at the Project table to see the basic information, but that's not necessarily being read when you run any specific API call.

Hi Nic,

Thanks for your response, but we could not understand it well. If we are fetching data from the JIRA database, aren't we running an SQL query after all? We need this query for the GET Project API call. The call is https://jira.corp.X.com/rest/api/2/project

No, you might not be.  The data you fetch may be being taken from the cache or index, so although your REST call gets data which matches the database, JIRA might not have run any SQL at all to answer the call.

Although, you really don't care about the SQL anyway - the call over REST answers your question, and correctly.  The SQL is utterly irrelevant to you.

Suggest an answer

Log in or Sign up to answer
Community showcase
Asked Dec 06, 2018 in Jira Ops

I'm John Allspaw, Ask Me Anything about incident analysis and postmortems

I'm John Allspaw, co-founder of   Adaptive Capacity Labs, where we help teams use their incidents to learn and improve. We bring research-driven methods and approaches to drive effective inciden...

5,615 views 22 17
View question

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you