Forums

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

project id with xray api cloud

Bruno Bernadet May 17, 2022

Hello

i use xray api with jira cloud. i am succefully authentificate but i can t retrieve a project id. The project exist and i have admin right everywhere. 

What can i change or use for trying to get the good result ?

- i use this query
get {{JIRA_BASEURL}}/rest/api/2/project/{{PROJECT_KEY}}

-the result is 
no value present


-my test

pm.test("Status code is 200"function () {
    pm.response.to.have.status(200);
});

pm.test("Project returned"function () {
    var jsonData = pm.response.json();
    pm.expect(jsonData.key).to.not.be.empty;
    pm.globals.set("PROJECT_ID"jsonData.id);
});

Thanks

0 answers

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
PRODUCT PLAN
FREE
PERMISSIONS LEVEL
Product Admin
TAGS
AUG Leaders

Atlassian Community Events