Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

[SOLVED] API get hi...
 
Notifications
Clear all

[SOLVED] API get history details

3 Posts
2 Users
0 Reactions
1,805 Views
 Dan
(@caccia)
Posts: 340
Contributor
Topic starter
 
[#7761]

Hello,

I am trying using the API to get fully detailed information on an item, including past modifications (Ticket in this case).
Currently it does not seem possible to retrieve an object's history, but is this a possible evolution ?

Otherwise I saw the Template report plugin can allow quite some flexibility, would that be an option ?

For some concrete info, I am looking for information such as :
- date/time of every status change (not only the basic handled, done dates, etc.)
- date/time of last modification

Appreciate the help !


 
Posted : 10 Sep 2021 13H35
babynus
(@babynus)
Posts: 14952
Member Admin
 

You can try API access on object History.
User filter on refType / refId
For instance for all changes on Ticket #1

 https://yourserver/api/History/search/refType=Ticket/refId=1 

or only for status change on Ticket #1

 https://yourserver/api/History/search/refType=Ticket/refId=1/colName=idStatus 

 
Posted : 13 Sep 2021 20H41
 Dan
(@caccia)
Posts: 340
Contributor
Topic starter
 

Hi,

Yes indeed, I had made a mistake configuring access rights on my test server.

Now I can find the field "lastUpdateDateTime" which is returned in the API on Ticket.
Thanks also for the tip on adding 'colName' for filtering of the History elements, very practical 🙂


 
Posted : 16 Sep 2021 17H01
Share:

Scroll to Top