You can get all the builds for a specific project or build the configuration as follows:
http://yourserver/app/rest/buildTypes/id:your_project_id
You can filter these results to show only the latest successful builds as follows:
http://yourserver/app/rest/buildTypes/id:your_project_id/?count=1&status=SUCCESS
Use a script to load href from the assembly returned by the above URL, and you can get the lastChanges element, which always contains the identifier of the last change.
Then you can send the link below to invoke the assembly, which will only include changes to this identifier:
http://yourserver/app/rest/action.html?add2Queue=your_project_id&modificationId=000000
Note: The ID attribute in the lastChanges element is the one you want to use as the modification identifier. However, this is not the actual change identifier of your VCS. This is the internal identifier of the City Team.
source share