Swagger V3 Tracker API Changes
From Codebeamer 10.0 we introduced our new V3 version of our Swagger documented API. The purpose of this page to introduce you to the changes we've made and help you with the migration.
Affected URI-s
The following endpoint is listing the fields of tracker, and a new attribute is added to these fields, called trackerItemField.
GET /tracker/{trackerId}/field.
The following endpoints are now merged into this extended (by query parameters) endpoint: GET /trackers/{trackerId}/permissions[?query].
GET {trackerURI}/roles/permissions.
GET {trackerURI}{roleURI}/permissions / GET {roleURI}{trackerURI}/permissions.
GET {trackerURI}{userURI}/permissions / GET {userURI}{trackerURI}/permissions.
Model changes
Tracker field list model (trackerItemField added)
The purpose of the trackerItemField attribute is to show the exact name of a tracker field, which is used during a tracker item's update or creation.
In this example: the priority field is named Business Value, and this can be different in other trackers, but the trackerItemField is solving this.
[
{
"id": 0,
"name": "ID",
"type": "IntegerField",
"hidden": false,
"valueModel": "IntegerFieldValue"
},
{
"id": 2,
"name": "Business Value",
"type": "OptionChoiceField",
"hidden": false,
"valueModel": "ChoiceFieldValue",
"title": "BV",
"multipleValues": false,
"options": [
{
"id": 1,
"name": "Must have",
"type": "ChoiceOptionReference"
},
{
"id": 3,
"name": "Should have",
"type": "ChoiceOptionReference"
},
{
"id": 5,
"name": "Nice to have",
"type": "ChoiceOptionReference"
}
],
"trackerItemField": "priority",
"referenceType": "ChoiceOptionReference"
},
{
"id": 3,
"name": "Summary",
"type": "TextField",
"hidden": false,
"valueModel": "TextFieldValue",
"trackerItemField": "name"
},

...

]
Permissions listed per role model
The described model is used in the GET /trackers/{trackerId}/permissions[?query] endpoint, which is similar to the GET {trackerURI}/roles/permissions endpoint's result.
",
"title": "BV",
"multipleValues": false,
"options": [
{
"id": 1,
"name": "Must have",
"type": "ChoiceOptionReference"
},
{
"id": 3,
"name": "Should have",
"type": "ChoiceOptionReference"
},
{
"id": 5,
"name": "Nice to have",
"type": "ChoiceOptionReference"
}
],
"trackerItemField": "priority",
"referenceType": "ChoiceOptionReference"
},
{
"id": 3,
"name": "Summary",
"type": "TextField",
"hidden": false,
"valueModel": "TextFieldValue",
"trackerItemField": "name"
},

...

]
Was this helpful?