Forums

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

GET Project Information - API

Thibaut LEGRAND -HONGQIAO- August 30, 2022

Hello, 

 

Sorry if the question has already been raised. I'm trying to get my project information within a json but the request response comes back empty 

 

I'm using this command to reach my project informations 

 

/rest/api/2/project

 

jira.PNG

The Solution might be very obvious, 

Thank you everyone for reading. 

 

 

2 answers

1 accepted

1 vote
Answer accepted
Thibaut LEGRAND -HONGQIAO- August 31, 2022

Problem fixed, I have generated another token from 

https://id.atlassian.com/manage-profile/security/api-tokens

If you're trying to call the API in post man, just copy paste the URL and use your user name and the API token in the authorization section with " Basic Auth". 

If it doesn't work, revoke your token and generate a new one. 

0 votes
Fabio Racobaldo _Herzum_
Community Champion
August 31, 2022

Hi @Thibaut LEGRAND -HONGQIAO- ,

you should add project id or key as parameter in your request (https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-projects/#api-rest-api-3-project-search-get)

/rest/api/3/project/{projectIdOrKey}

Hope this helps,

Fabio

Thibaut LEGRAND -HONGQIAO- August 31, 2022

Hello @Fabio Racobaldo _Herzum_ 

Thank you very much for your help, 

I did use the key the same way has it is written on the project information but i'm getting this message : 

Couldn't it be an authorization issue ? 

 

{
    "errorMessages": [
        "No project could be found with key 'PORTAL'."
    ],
    "errors": {}
}

Product key.PNG

Fabio Racobaldo _Herzum_
Community Champion
August 31, 2022

Has user used for REST API permission to view this project?

Let me know,

Fabio

Thibaut LEGRAND -HONGQIAO- August 31, 2022

@Fabio Racobaldo _Herzum_

Yes I have permission to view this project. I just generated an API token to authenticate.

Suggest an answer

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

Atlassian Community Events