mirror of
https://github.com/frappe/erpnext.git
synced 2026-08-24 04:26:38 +00:00
@@ -0,0 +1,11 @@
|
||||
import frappe
|
||||
|
||||
def pre_process(issue):
|
||||
|
||||
project = frappe.db.get_value('Project', filters={'project_name': issue.milestone})
|
||||
return {
|
||||
'title': issue.title,
|
||||
'body': frappe.utils.to_html(issue.body or ''),
|
||||
'state': issue.state.title(),
|
||||
'project': project or ''
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"condition": "{\"repo\":\"frappe/erpnext\"}",
|
||||
"creation": "2017-10-16 16:03:32.772191",
|
||||
"docstatus": 0,
|
||||
"doctype": "Data Migration Mapping",
|
||||
"fields": [
|
||||
{
|
||||
"is_child_table": 0,
|
||||
"local_fieldname": "subject",
|
||||
"remote_fieldname": "title"
|
||||
},
|
||||
{
|
||||
"is_child_table": 0,
|
||||
"local_fieldname": "description",
|
||||
"remote_fieldname": "body"
|
||||
},
|
||||
{
|
||||
"is_child_table": 0,
|
||||
"local_fieldname": "status",
|
||||
"remote_fieldname": "state"
|
||||
}
|
||||
],
|
||||
"idx": 0,
|
||||
"local_doctype": "Task",
|
||||
"local_primary_key": "name",
|
||||
"mapping_name": "Issue to Task",
|
||||
"mapping_type": "Pull",
|
||||
"migration_id_field": "github_sync_id",
|
||||
"modified": "2017-10-20 11:48:54.575993",
|
||||
"modified_by": "Administrator",
|
||||
"name": "Issue to Task",
|
||||
"owner": "Administrator",
|
||||
"page_length": 10,
|
||||
"remote_objectname": "Issue",
|
||||
"remote_primary_key": "id"
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
def pre_process(milestone):
|
||||
return {
|
||||
'title': milestone.title,
|
||||
'description': milestone.description,
|
||||
'state': milestone.state.title()
|
||||
}
|
||||
@@ -0,0 +1,36 @@
|
||||
{
|
||||
"condition": "{\"repo\": \"frappe/erpnext\"}",
|
||||
"creation": "2017-10-13 11:16:49.664925",
|
||||
"docstatus": 0,
|
||||
"doctype": "Data Migration Mapping",
|
||||
"fields": [
|
||||
{
|
||||
"is_child_table": 0,
|
||||
"local_fieldname": "project_name",
|
||||
"remote_fieldname": "title"
|
||||
},
|
||||
{
|
||||
"is_child_table": 0,
|
||||
"local_fieldname": "notes",
|
||||
"remote_fieldname": "description"
|
||||
},
|
||||
{
|
||||
"is_child_table": 0,
|
||||
"local_fieldname": "status",
|
||||
"remote_fieldname": "state"
|
||||
}
|
||||
],
|
||||
"idx": 0,
|
||||
"local_doctype": "Project",
|
||||
"local_primary_key": "project_name",
|
||||
"mapping_name": "Milestone to Project",
|
||||
"mapping_type": "Pull",
|
||||
"migration_id_field": "github_sync_id",
|
||||
"modified": "2017-10-20 11:48:54.552305",
|
||||
"modified_by": "Administrator",
|
||||
"name": "Milestone to Project",
|
||||
"owner": "Administrator",
|
||||
"page_length": 10,
|
||||
"remote_objectname": "Milestone",
|
||||
"remote_primary_key": "id"
|
||||
}
|
||||
Reference in New Issue
Block a user