Interfacing Hg with TOPdesk
Kevin Bullock
kbullock+mercurial at ringworld.org
Fri Sep 2 15:13:30 UTC 2016
> On Sep 2, 2016, at 08:29, Alban Hertroys <alban.hertroys at apollovredestein.com> wrote:
>
> Hello all,
>
> We're using both Hg and TOPdesk 5 (a web-based service/support management
> package) in several departments and we are wondering how feasible it would
> be to interface the two together.
>
> What we envision is adding a TOPdesk call number to our Hg commit
> messages, which then gets picked up by a commit hook that adds the commit
> message and change hashes to a field in the service call in TOPdesk. As a
> bonus, it should then be possible to put hyperlinks on those commit hashes
> to a web-based Hg repository (which we don't have yet, but that's
> details). That would provide us a nice bit of extra traceability of our
> change history, available from both systems.
>
> Has anyone already done this?
I don't know anything about TOPdesk, but we have a similar integration between Bugzilla and Mercurial on the Mercurial project itself. It's done with an 'incoming' hook (n.b. not a commit hook) to mark bugs as TESTING, plus a custom template on <https://selenic.com/hg/> that turns the issue reference in the commit message into a link back to Bugzilla (e.g. <https://selenic.com/hg/rev/f148bfa40489>).
If TOPdesk has some kind of RPC or Web API, the integration should be fairly easy to write.
pacem in terris / мир / शान्ति / سَلاَم / 平和
Kevin R. Bullock
More information about the Mercurial
mailing list