python-redmine icon indicating copy to clipboard operation
python-redmine copied to clipboard

RedmineCrm Helpdesk

Open urba1n opened this issue 10 years ago • 14 comments

Do you plan to add support for redminecrm helpdesk plugin ?

urba1n avatar Jan 12 '16 13:01 urba1n

Yes, I have plans to add support for all Redmine CRM plugins. No ETA though.

maxtepkeev avatar Jan 12 '16 13:01 maxtepkeev

Any updates on the support of CRM plugins?

From what you know about how plugins interface with the base redmine package, would modifying the REST API directly be a possible short term solution? The plugins seems to create classes that belong to the issue class, however that data isn't natively built into REST. If REST were modified, I would think that running a dir(issue) would return anything it found (assuming the fields aren't hardcoded in python-redmine).

This would be for the Agile CRM plugin to be able to obtain story points through REST.

cblakeweb avatar Aug 02 '16 19:08 cblakeweb

I'm currently working on python-redmine v2 which will bring a lot of enhancements and new features, including CRM plugins support. I hope to prepare a release by the end of october or maybe a little bit earlier.

As to your suggestion about modifying REST API directly, I assume you are talking about modifying CRM plugins written in Ruby to expose their data not though separate api endpoints e.g. /helpdesk/* but through current standard endpoints like /issues/* - yes, that will work, because python-redmine doesn't hardcode attributes and all new attributes that will appear after such REST API modification will be available through python-redmine immediately.

maxtepkeev avatar Aug 03 '16 07:08 maxtepkeev

Thanks for the response! Yes, I was talking about modifying the /issues/* endpoint as a temporary workaround until full CRM support is built into python-redmine. I was hoping to expose the plugin class to the api object that does the mapping, then hopefully that field would return when issues object is obtained through python-redmine.

cblakeweb avatar Aug 03 '16 14:08 cblakeweb

Any updates on this integration?

cblakeweb avatar Jan 24 '17 20:01 cblakeweb

Working on it right now, will be available in v2.0.0 which should be available somewhere in March.

maxtepkeev avatar Jan 25 '17 05:01 maxtepkeev

I thought I'll share a little update on this one.

Unfortunately during the work on this issue I realised that it's not that easy to add support for this plugin, because it doesn't follow the usual design of other plugins/resources in Redmine. I mean of course I could add a quick'n'dirty support for it but that is not what I want to do.

I have ideas how I can restructure some parts of Python-Redmine to make implementing support for this kind of plugins easier, but because that will take some time and because I don't want to hold a 2.0.0 release anymore I decided to add support for this plugin in v2.1.0 instead of v2.0.0.

maxtepkeev avatar Mar 12 '17 11:03 maxtepkeev

Any updates on this one?

I need to set some helpdesk attributes during ticket creation (mainly helpdesk_ticket_attributes_source and helpdesk_customer_id). helpdesk_customer_id involves searching the customers for an existing customer (by email) or adding it. Is there something in alpha or beta development that I can give a try?

sweh avatar Sep 01 '21 07:09 sweh

@sweh no updates so far, the Helpdesk API hasn't been fixed, as stated in #204 we were waiting for the plugin developers to make a few fixes to make API consistent and usable but they didn't. We asked several times but received no response, so we just gave up on this one.

maxtepkeev avatar Sep 01 '21 11:09 maxtepkeev

Yea, I noticed that. Is that a "its not working at all" or just a "the api is not consistent enough to get it right on our side" thing. Unfortunately, the Helpdesk public api documentation does not mention if its possible to add a contact to an issue. I mailed them earlier, so hopefully they'll tell me soon, but maybe you guys already know the api endpoint better and can help me out with e.g. a little curl statement. :-)

sweh avatar Sep 01 '21 11:09 sweh

@sweh in general it's more of a "the api is not consistent enough to get it right on our side", but there's also a few bugs that bother us, for instance have a look what happens if you do multiple calls to create a ticket with the same params:

2

Regarding the question about adding a contact to a ticket, I think it's covered by the docs, have a look at https://www.redmineup.com/pages/help/helpdesk/rest-api-create-ticket. You have to add both issue and assign a contact to create a ticket.

maxtepkeev avatar Sep 01 '21 12:09 maxtepkeev

Regarding the question about adding a contact to a ticket, I think it's covered by the docs, have a look at https://www.redmineup.com/pages/help/helpdesk/rest-api-create-ticket. You have to add both issue and assign a contact to create a ticket.

Yea, I already tried that and thats working. But it does not help with existing tickets. I worry there is no API for that use case. :-(

sweh avatar Sep 01 '21 12:09 sweh

@sweh oh I see what you mean, yes, afaik that case isn't covered by their API, if only they added it recently or will add it on your request.

maxtepkeev avatar Sep 01 '21 12:09 maxtepkeev

@maxtepkeev I'm wondering whether there is an update for the helpdesk?

vihoa avatar Jun 02 '22 05:06 vihoa

Finally, Python-Redmine v2.4.0 (PRO edition) supports Helpdesk plugin.

maxtepkeev avatar Jan 17 '23 21:01 maxtepkeev

Works like a charm. Thanks a lot!

The docs can be found here: https://python-redmine.com/resources/ticket.html

sweh avatar Jan 18 '23 07:01 sweh

@sweh Thanks for the feedback.

Helpdesk plugin API isn't perfect still, so let me know if you find anything missing or not working properly.

maxtepkeev avatar Jan 18 '23 07:01 maxtepkeev