Get items modified by a specific user after a certain date with EWM Reportable REST API
Hello,
Im trying to get all items in our project, that have been modified by a set user after a certain date.
For example, I want all items that I modified after this date 01.November.2023:
ccm/rpt/repository/workitem?fields=workitem/workItem[modified>2023-11-01T10:00:00.000%2b0200 and modifiedBy/name=PATRICK]/(id|summary)
the problem is this will only return an item if the last change was by me, not if i modified the item on the 02.November.2023 but someone else modified the item a day later.
So I tried again using the itemHistory:
/ccm/rpt/repository/workitem?fields=workitem/workItem/itemHistory[modified>2023-11-01T10:00:00.000%2b0200%20and%20modifiedBy/name=PATRICK]/(id/summary)
This only returns repeating <workItems/> without an id or a summary.
The wiki unfortunately was no help to me, can anyone help me out please? I cant provide images since you need 60 reputation points to do that.
We use EWM 7.0.2 SR1
Best regards
Patrick
One answer
The behavior of the API indicates that you have an issue with the URL or specification what information to return. Things to look at would be URL encoding.
It is important to understand the structure of the query that specifies what information is returned how. In your 2nd example you have a slash / instead of a pipe | in (id/summary) The slash indicates summary should be a nested property of ID, which is not correct.
I tried to summarize my experience with the EWM Reportable REST API here:
https://rsjazz.wordpress.com/2022/03/02/ewm-reportable-rest-api/
Comments
showing 5 of 6
show 1 more comments