Hi Greg.
If I understand your question, you're trying to put together a list of artifacts changed by a specific user (perhaps within a given time frame). Is that correct?
WSAPI is unable to help unfortunately. But LookBack API can.
WSAPI - Web Services API - will not allow querying for the revision history of artifacts. In that page you had mentioned for object model, if you click on 'Artifact' and scroll down to the RevisionHistory field you shall see that it can not be used in queries. You can query for revisions based on users like you said from the Revision endpoint, but you can't tie them up to artifacts cause you'll need to run a query on the Artifact endpoint which is blocked.
However, this requirement should be fairly simple to the
Lookback API. The
Lookback API stores history of changes to artifacts in forms of snapshots. There are some limitations such as, it won't record snapshots for changes for Attachments, or any of the Rich Text Fields (such as Description, Discussion, Notes). You can use this api to find snapshots of changes based on the user who initiated them, based on time frames and other criteria. The snapshots you will get with your queries will also have the Revision field that will match the revision you're finding in WSAPI. However, going back to your request, it doesn't sound as if you really care for the revision numbers, but do care for the artifacts, the dates and the user. In that case you can form that query to the lookback api and not even worry about the revisions at all.
Here is a sample query that comes close to what you need:
https://rally1.rallydev.com/analytics/v2.0/service/rally/workspace/<<Your Workspace OID>>/artifact/snapshot/query.js?find={"_User":<<User OID>>,"_ValidFrom":{"$gte":"2019-07-01T00:00:00.000Z"}}&fields=["FormattedID","Name","Owner","_ValidFrom","_ValidTo","_PreviousValues","_RevisionNumber"]&pagesize=2000The above query shall return all snapshots of changes made by the user (fill in the <<User OID>>) after 07.01.2019. You can further constrain this query to only look at Defects or other artifact types, perhaps based it on previous values of some of your fields etc etc...
If you need a more specific query sample, let us know and we'll try to have it for you.
I hope this helps.
Sagi
Original Message:
Sent: 07-03-2019 01:23 PM
From: Greg Monahan
Subject: Trying to get revisions by a specific user, and walk back to the artifact that the revision is for
Thanks, was hoping for a more general solution as I'd like to do this for all work items (features, stories, defects, ...) at some point.
The genesis of this was from a couple of apps that I wrote to display Posts that each user made, and Posts that reference yourself. Users love them and wanted to similarly see the changes that they made in reverse chronological order - so this is something that unfortunately really needs to be an app, and not something each user would have to extract and manipulate.
------------------------------
Benefitfocus.com, Inc
Original Message:
Sent: 07-03-2019 11:36 AM
From: Keith Jones
Subject: Trying to get revisions by a specific user, and walk back to the artifact that the revision is for
There is probably an easier way, but I do something similar using the Excel plug-in. Download the relevant data and then populate the defect number using Vlookup.
Original Message:
Sent: 07-03-2019 08:12 AM
From: Greg Monahan
Subject: Trying to get revisions by a specific user, and walk back to the artifact that the revision is for
I can query the Revisions to get the last N revisions of a specific user, but the RevisionHistory / RevisionNumber that comes back with the recordset is not traceable to the artifact (feature, US, defect) that it is a revision of. The RevisionHistory includes Subscription, Workspace and Revisions - not enough to continue tracing to the artifact.
Not looking for any code, just a pointer on how to spelunk the object model to get enough information to render a FormattedID (F1234, US1234, DE1234).
My first starting point is always the object model at https://rally1.rallydev.com/slm/doc/webservice/
------------------------------
Benefitfocus.com, Inc
------------------------------