comparison src/plugins/plugin_tickets_import.py @ 2471:544c4d2fec45

plugins schema, merge_requests, tickets*: factorisation Dode common in plugins using schema have been factorised in pubsub schema plugin, and filters users in tickets handling have been renamed in a more generic way and put there too. "reporter*" fields in tickets have been renamed to "author*" as it is a more generic term which can be used elsewhere. The use of new utils.partial function make easy the creation of simple plugins using schema.
author Goffi <goffi@goffi.org>
date Fri, 12 Jan 2018 15:58:54 +0100
parents 91bbad17fd53
children 0046283a285d
comparison
equal deleted inserted replaced
2470:8084066ac95b 2471:544c4d2fec45
69 'id': unique id (must be unique in the node) of the ticket 69 'id': unique id (must be unique in the node) of the ticket
70 'title': title (or short description/summary) of the ticket 70 'title': title (or short description/summary) of the ticket
71 'body': main description of the ticket 71 'body': main description of the ticket
72 'created': date of creation (unix time) 72 'created': date of creation (unix time)
73 'updated': date of last update (unix time) 73 'updated': date of last update (unix time)
74 'reporter': full name of reporter 74 'author': full name of reporter
75 'reporter_jid': jid of reporter 75 'author_jid': jid of reporter
76 'reporter_email': email of reporter 76 'author_email': email of reporter
77 'assigned_to_name': full name of person working on it 77 'assigned_to_name': full name of person working on it
78 'assigned_to_email': email of person working on it 78 'assigned_to_email': email of person working on it
79 'cc_emails': list of emails subscribed to the ticket 79 'cc_emails': list of emails subscribed to the ticket
80 'priority': priority of the ticket 80 'priority': priority of the ticket
81 'severity': severity of the ticket 81 'severity': severity of the ticket