Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Getting data from the rest API

Bishow Gurung January 5, 2023

Hi I am trying to get data from rest API and it gives the data when I enter

https://{adress}/rest/api/latest/project

but it sends error when I try to get data from

https://{adress}/rest/api/version/project/{projectId}

1 answer

0 votes
Allan Maxwell
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 5, 2023

Is this a Jira Software or Jira Align question?  You call looks like something that might work with Jira Software, but there are not "Projects" in Jira Align.

Allan Maxwell
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 5, 2023

Yeah, works for me against Jira Software ...{{base_Jira_url}}/project/ALLAN

Bishow Gurung January 9, 2023

Hi Allan 

thank you for your time.

I am using Java restTemplate.exchange() function to get the data from

https://{adress}/rest/api/version/project/{projectId}.

When I use different projectId then it gets the data but when I try to get data from projectid (which i needed) is not sending data.

Allan Maxwell
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
January 9, 2023

Could it be because the API Key you are using was created within/by a user account that does not have access to the Project that you are trying to reach?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events