SOAP API time tracking update?

General discussion of Mantis.

Moderators: Developer, Contributor

Post Reply
andrex
Posts: 4
Joined: 27 Apr 2016, 23:36

SOAP API time tracking update?

Post by andrex »

Could we expect in the near future API update for the time tracking?
If not what is the best way to create my own API version? Which must be not lost after updates.
atrol
Site Admin
Posts: 8375
Joined: 26 Mar 2008, 21:37
Location: Germany

Re: SOAP API time tracking update?

Post by atrol »

I recommend to write to the "SOAP API Mailing List"
https://www.mantisbt.org/mailinglists.php
Please use Search before posting and read the Manual
rombert
Posts: 66
Joined: 05 Nov 2009, 08:43

Re: SOAP API time tracking update?

Post by rombert »

What are you missing from the current API?
andrex
Posts: 4
Joined: 27 Apr 2016, 23:36

Re: SOAP API time tracking update?

Post by andrex »

I miss 2 things:
- time tracking
- reading single Note, as in "Common" projects, like meeting I have a lot of topics

Thanks atrol. I'll try.
rombert
Posts: 66
Joined: 05 Nov 2009, 08:43

Re: SOAP API time tracking update?

Post by rombert »

1. Time tracking is possible by adding issue comments with mc_issue_note_add. The IssueNoteData object has a time_tracking field which contains the actual time tracking value. Also note_type needs to be set to 2 ( TIME_TRACKING ).

2. Reading a single not is not possible at the moment. Feel free to raise the issue on the bugtracker for discussion and link it back here.
andrex
Posts: 4
Joined: 27 Apr 2016, 23:36

Re: SOAP API time tracking update?

Post by andrex »

Thanks rombert,
First, I need the reading but I decide to use SSH tunnel to MySQL DB. So I must not wait the changes what I need and not change PHP code.

In addition, i did changes in time tracking report:
-Added project name.
-Correct problem with time tracking on hierarchy projects. (By all projects and by single project you can see the time tracking but not on the top projects in hierarchy).
If somebody interested, I can post it, if you tell me where is correct place for it.
rombert
Posts: 66
Joined: 05 Nov 2009, 08:43

Re: SOAP API time tracking update?

Post by rombert »

Glad to hear that you found a solution that works for you.

Please keep in mind that accessing the DB directly has some inconveniences:
  • You will need to adapt to schema changes
  • No fine-grained access control
  • No history tracking, email notifications, etc for changes
As for posting your updates, that would be very welcomed. Please
  1. Open a bug report on http://www.mantisbt.org/bugs/
  2. Create a pull request on https://github.com/mantisbt/mantisbt
Thanks!

Robert
andrex
Posts: 4
Joined: 27 Apr 2016, 23:36

Re: SOAP API time tracking update?

Post by andrex »

>Create a pull request on...
Sorry, but difference to trunk is too big. Here is the difference to my version
timeTrackingAlex.zip
(17 KiB) Downloaded 404 times
>You will need to adapt to schema changes
this is only one problem if I want to update my current version.
All others I can made the same
Post Reply