Start a topic
With the exception of Windchill, The PTC Community is on read-only status until April 6 in preparation for moving our community to a new platform. Learn more here
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

The PTC Community is on temporary read only status in preparation for moving our community to a new platform. Learn more here

Translate the entire conversation x

Retrieving items belonging to a specific baseline using Rest API

IV_10178511
3-Newcomer

Retrieving items belonging to a specific baseline using Rest API

Dear Support!

We are using Codebeamer 2.0.0.0

We would like to retrieve all the items of a specific tracker that are associated with a specific baseline using Rest API.

Is this possible?

Can you provide a "URL-template" for this?

 

Thank you in advance!

ACCEPTED SOLUTION

Accepted Solutions

Hello @IV_10178511 ,

 

1. You can use: "GET /v3/trackers/{trackerId}/baselines" endpoint to obtain the list of baselines for each tracker.

2. To get all items in a baseline for a Project, you could use, for example, "GET" or "POST /v3/items/query" in combination with a "baselineId" and "queryString" like e.g. project.id IN (4).

 

Request body example:

{
"baselineId": 1234,
"page": 1,
"pageSize": 50,
"queryString": "priority='Normal'"
}

 

Best Regards,

Cristina

View solution in original post

3 REPLIES 3

An additional question: in case this would not be possible with our current version, can this be done with a higher version of Codebeamer?

Hi @IV_10178511 

Thank you for your question. 

Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.

Also, feel free to add any additional information you think might be relevant. It sometimes helps to have screenshots to better understand what you are trying to do.

 

Best regards,


Catalina
PTC Community Moderator
PTC

Hello @IV_10178511 ,

 

1. You can use: "GET /v3/trackers/{trackerId}/baselines" endpoint to obtain the list of baselines for each tracker.

2. To get all items in a baseline for a Project, you could use, for example, "GET" or "POST /v3/items/query" in combination with a "baselineId" and "queryString" like e.g. project.id IN (4).

 

Request body example:

{
"baselineId": 1234,
"page": 1,
"pageSize": 50,
"queryString": "priority='Normal'"
}

 

Best Regards,

Cristina

Announcements

Survey Now Live!

Codebeamer Community: we're listening.


Add your voice in our short CSAT survey!


Top Tags