+
+ {mapping.bitrixFields[op.vacancyField]?.filterLabel} -> {mapping.bitrixFields[op.stateField]?.filterLabel}
+ ->
+
+
+
+
+
diff --git a/plugins/bitrix/package.json b/plugins/bitrix/package.json
index 0058758ff7..624a7c5abf 100644
--- a/plugins/bitrix/package.json
+++ b/plugins/bitrix/package.json
@@ -36,7 +36,9 @@
"@hcengineering/attachment": "^0.6.1",
"fast-equals": "^2.0.3",
"qs": "~6.11.0",
- "@hcengineering/gmail": "^0.6.4"
+ "@hcengineering/gmail": "^0.6.4",
+ "@hcengineering/recruit": "^0.6.8",
+ "@hcengineering/task": "^0.6.3"
},
"repository": "https://github.com/hcengineering/anticrm",
"publishConfig": {
diff --git a/plugins/bitrix/src/hr.ts b/plugins/bitrix/src/hr.ts
new file mode 100644
index 0000000000..7c9eb465b9
--- /dev/null
+++ b/plugins/bitrix/src/hr.ts
@@ -0,0 +1,72 @@
+import { Organization } from '@hcengineering/contact'
+import core, { Account, Client, Doc, Ref, SortingOrder, TxOperations } from '@hcengineering/core'
+import recruit, { Vacancy } from '@hcengineering/recruit'
+import task, { KanbanTemplate, State, calcRank, createKanban } from '@hcengineering/task'
+
+export async function createVacancy (
+ rawClient: Client,
+ name: string,
+ templateId: Ref