Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE
Shyam11 Trusted Contributor.
Trusted Contributor.

AGM API - Query by last_modified

I want to retrieve all the backlog_items in a specific workspace based on the last_modified field. What is the syntax to provide the values in the GET query (GET /api/workspaces/{workspaceID}/backlog_items)

2 Replies
New Member.

Re: AGM API - Query by last_modified

You can see an example in the API Help page at:

Here is an example of a method to get backlog items:

 * Returns a list of all user stories assigned to a given release. Uses the GET REST request 
 * @param token the security token needed for every REST request 
 * @param releaseId the id of the release from which to get all the user stories 
 * @return a list of all user stories of the release 
 * @throws IOException 
 * @throws JSONException 
 * @throws ParseException 
 public ArrayList<UserStoryBacklogItemEntity> getItemsInRelease(AccessToken token,int releaseId) throws IOException, JSONException, ParseException {
     String url=String.format("%s/agm/api/workspaces/%d/backlog_items?query=\"release_id=%d\"",SERVER_URL_PREFIX,DEFAULT_WORKSPACE_ID, releaseId); 
     Map<String, String> headers = createHeader(token); 
     RestResponse response = sendRequest(url, HttpMethod.GET, null, headers);
     return UserStoryBacklogItemEntity.createListFromJson(response.getData());
New Member.

Re: AGM API - Query by last_modified

it's so great app

The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.