Forum

[SOLVED] API get hi...
 
Notifications
Retirer tout

[SOLVED] API get history details

3 Posts
2 Utilisateurs
0 Reactions
1,804 Vu
 Dan
(@caccia)
Posts: 340
Contributor
Début du sujet
 
[#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 !


 
Posté : 10 Sep PM 13:099
(@babynus)
Posts: 14952
Membre 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 

 
Posté : 13 Sep PM 20:099
 Dan
(@caccia)
Posts: 340
Contributor
Début du sujet
 

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 🙂


 
Posté : 16 Sep PM 17:099
Share:
Retour en haut