Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,180
Community Members
 
Community Events
168
Community Groups

GET Project Information - API

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

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

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

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

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

Let me know,

Fabio

@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

Atlassian Community Events