3.6 Hướng dẫn cấu hình upload file trong template
Thêm vào columns ở template của process một trường như sau:
{
"name": "file here",
"type": "upload",
"id": -6,
"conditions": {
"required": false,
"max-size": 10
},
"position": 6
}
Nếu muốn upload file, type luôn phải là "upload".
id và position tuân theo quy tắc.
Áp dụng cho table và multitable.
Ví dụ:
- Table:
{
"individual": [
{
"name": "CM Plan",
"value": "",
"type": "upload",
"staticContent": "<p style='padding-top:10px;font-size: 14px; color: red'><i>Please attach CM Plan so that IT can approve more quickly</i></p>",
"id": -13,
"conditions": {
"max-size": 10,
"multiple": false
},
"additionalDisplayClass": "left-info",
"position": -13
}
],
"table": {
"columns": [
{
"name": "Project Name",
"value": "",
"type": "jiraproject",
"position": 1,
"id": -1,
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "Software Name",
"type": "text",
"position": 2,
"id": -2,
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "Link Download",
"type": "text",
"position": 3,
"id": -3,
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "Note",
"type": "text",
"position": 5,
"id": -5,
"conditions": {
"required": false,
"max-length": 1000
}
},
{
"name": "File Upload",
"type": "upload",
"id": -4,
"conditions": {
"max-size": 10
},
"position": 4
},
{
"name": "Deni upload file",
"type": "upload",
"id": -6,
"conditions": {
"max-size": 10
},
"position": 6
}
],
"values": []
},
"notifications": [
{
"id": -1,
"action": "CREATE_TICKET",
"to": [
{
"type": "TICKET_CREATOR"
}
],
"template": "Default Template For Ticket Creation"
},
{
"id": -2,
"action": "CREATE_TICKET",
"to": [
{
"type": "TICKET_WATCHERS"
}
],
"template": "Default Template For Ticket Creation Send To Watchers"
}
]
}
- Multitable:
{
"individual": [
{
"name": "Requestor",
"value": "",
"type": "master_data_fis_requestors",
"id": -1000,
"valuefeeder": "TicketOwner",
"display": true,
"disabled": false,
"conditions": {
"required": true,
"min-length": 1,
"max-length": 255
},
"additionalDisplayClass": "left-info",
"position": -1000
},
{
"name": "Requestor Department",
"value": "",
"type": "master_data_requestor_department",
"id": -990,
"conditions": {
"required": true,
"min-length": 1,
"max-length": 255
},
"additionalDisplayClass": "right-info",
"position": -990
},
{
"name": "Your Contact Number",
"value": "",
"placeholder": "IPPhone, Mobile,...",
"type": "number",
"position": -985,
"id": -985,
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "BG Lead",
"staticContent": "<p style='font-size: 12px; color: #3617FF'><i></i></p>",
"additionalDisplayClass": "right-info",
"value": "",
"type": "master_data_it0502_fisx_bglead",
"position": -984,
"id": -910,
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "Project code",
"staticContent": "<p style='font-size: 12px; color: #3617FF'><i>Project key=Tên khách hàng_Tên sản phẩm/ Dự án/ Số hợp đồng_Năm (Optional)_Hậu tố (TH: Tích hợp, PM: Phần mềm, PC: Phần cứng, TV: Tư vấn, BH: Bảo hành, bảo trì, DV: Dịch vụ BHBT phần cứng, NC: nghiên cứu)</i></p><p style='font-size: 12px; color: #3617FF'><i>Project key, chỉ dùng các ký tự sau: chữ cái từ a đến z (chữ hoa, chữ thường), số từ 0 đến 9, dấu _</i></p><p style='font-size: 12px; color: #3617FF'><i>Không đặt trùng với mã dự án đã có. Để kiểm tra vui lòng check theo 2 bước sau: (1)Create Project On SVN/Jira: chọn các dòng có chữ Jira/SNV; (2) Gõ mã dự án của bạn vào trường thông tin Check Project key</i></p>",
"value": "",
"type": "text",
"position": -980,
"id": -920,
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"format": {
"regex": "^[A-Za-z]{2,}[a-zA-Z0-9_]+$",
"text": "Vui lòng viết liền và gạch chân giữa các từ, bắt đầu bằng ít nhất 2 chữ cái."
}
}
},
{
"name": "Project name",
"staticContent": "<p style='font-size: 12px; color: #3617FF'><i>Chiều dài không quá 100 ký tự. Không đặt trùng với tên dự án đã có.</i></p><p style='font-size: 12px; color: #3617FF'><i>Để kiểm tra vui lòng check theo 2 bước sau: (1)Create Project On SVN/Jira: chọn các dòng có chữ Jira/SVN; (2) Gõ mã dự án của bạn vào trường thông tin Check Project name.</i></p>",
"value": "",
"type": "text",
"position": -975,
"id": -880,
"additionalDisplayClass": "right-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 100
}
},
{
"name": "Create Project on SVN/Jira",
"type": "select",
"position": -970,
"id": -50,
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"data": [
{
"text": "",
"value": ""
},
{
"text": "JIRA project",
"value": "JIRA project"
},
{
"text": "SVN folder",
"value": "SVN folder"
},
{
"text": "JIRA project & SVN Folder",
"value": "JIRA project & SVN Folder"
},
{
"text": "NA",
"value": "NA"
}
]
}
},
{
"name": "Check Project Name on Jira & SVN (Kiểm tra tên dự án đã tồn tại trên Jira/SVN)",
"type": "splitter",
"id": -918,
"position": -965,
"conditions": {
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"valueCondition": "JIRA project & SVN Folder,JIRA project,SVN folder",
"idCondition": -50
}
}
},
{
"name": "Check Project key on Jira (Project code)",
"value": "",
"staticContent": "<p style='font-size: 12px; color: #3617FF'><i>Điền Project key để kiểm tra với mã dự án đã có. Hệ thống hiển thị Other' => Mã dự án chưa tồn tại</i></p>",
"type": "master_data_jira_project",
"position": -960,
"id": -900,
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"valueCondition": "JIRA project & SVN Folder,JIRA project",
"idCondition": -50
}
}
},
{
"name": "Project key availability on Jira",
"value": "",
"staticContent": "<p style='font-size: 12px; color: #3617FF'><i>Project hợp lệ sẽ có giá trị Yes</i></p>",
"type": "text",
"disabled": true,
"position": -955,
"dataFrom": "-920,-900",
"dataFromFunc": "feederData",
"dataFromCondition": [
{
"value": {
"dataset": "value",
"value": "Yes"
},
"conditions": {
"operation": "and",
"items": [
{
"operation": "notEqual",
"compare-type": "text",
"left-element": {
"dataset": "INDIVIDUAL",
"infoId": -920
},
"right-element": {
"dataset": "INDIVIDUAL",
"infoId": -900
}
}
]
}
},
{
"conditions": {
"operation": "else"
},
"value": {
"dataset": "value",
"value": ""
}
}
],
"id": -891,
"additionalDisplayClass": "right-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"valueCondition": "JIRA project & SVN Folder,JIRA project",
"idCondition": -50
}
}
},
{
"name": "Check Project key on SVN (Project code)",
"value": "",
"staticContent": "<p style='font-size: 12px; color: #3617FF'><i>Điền Project key để kiểm tra với mã dự án đã có. Hệ thống hiển thị Other' => Mã dự án chưa tồn tại</i></p>",
"type": "master_data_svn_project",
"position": -950,
"id": -9000,
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"valueCondition": "JIRA project & SVN Folder,SVN folder",
"idCondition": -50
}
}
},
{
"name": "Project key availability on SVN",
"value": "",
"staticContent": "<p style='font-size: 12px; color: #3617FF'><i>Project hợp lệ sẽ có giá trị Yes</i></p>",
"type": "text",
"disabled": true,
"position": -945,
"dataFrom": "-920,-9000",
"dataFromFunc": "feederData",
"dataFromCondition": [
{
"value": {
"dataset": "value",
"value": "Yes"
},
"conditions": {
"operation": "and",
"items": [
{
"operation": "notEqual",
"compare-type": "text",
"left-element": {
"dataset": "INDIVIDUAL",
"infoId": -920
},
"right-element": {
"dataset": "INDIVIDUAL",
"infoId": -9000
}
}
]
}
},
{
"conditions": {
"operation": "else"
},
"value": {
"dataset": "value",
"value": ""
}
}
],
"id": -8910,
"additionalDisplayClass": "right-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"valueCondition": "JIRA project & SVN Folder,SVN folder",
"idCondition": -50
}
}
},
{
"name": "Check Project name on Jira",
"value": "",
"staticContent": "<p style='font-size: 12px; color: #3617FF'><i>Điền Project name để kiểm tra với mã dự án đã có. Hệ thống hiển thị 'Other Project' => Tên dự án chưa tồn tại</i></p>",
"type": "master_data_jira_project_name_select",
"position": -940,
"id": -861,
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"valueCondition": "JIRA project & SVN Folder,JIRA project",
"idCondition": -50
}
}
},
{
"name": "Project name availability on Jira",
"value": "",
"staticContent": "<p style='font-size: 12px; color: #3617FF'><i>Project hợp lệ sẽ có giá trị Yes</i></p>",
"type": "text",
"position": -935,
"dataFrom": "-880,-861",
"dataFromFunc": "feederData",
"dataFromCondition": [
{
"value": {
"dataset": "value",
"value": "Yes"
},
"conditions": {
"operation": "and",
"items": [
{
"operation": "notEqual",
"compare-type": "text",
"left-element": {
"dataset": "INDIVIDUAL",
"infoId": -880
},
"right-element": {
"dataset": "INDIVIDUAL",
"infoId": -861
}
}
]
}
},
{
"conditions": {
"operation": "else"
},
"value": {
"dataset": "value",
"value": ""
}
}
],
"id": -859,
"additionalDisplayClass": "right-info",
"disabled": true,
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"valueCondition": "JIRA project & SVN Folder,JIRA project",
"idCondition": -50
}
}
},
{
"name": "Focus information",
"type": "splitter",
"id": -980,
"position": -930
},
{
"name": "Major Implement Department",
"value": "",
"staticContent": "<p style='font-size: 12px; color: #3617FF'><i>Đơn vị triển khai chính</i></p>",
"type": "master_data_owner_dept",
"position": -920,
"id": -970,
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "BG Lead of Major Implement Department",
"value": "",
"type": "master_data_bs0306_bg_majorunit",
"position": -915,
"id": -965,
"additionalDisplayClass": "right-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "Project scope",
"value": "",
"type": "textarea",
"position": -910,
"id": -950,
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 9999
}
},
{
"name": "Project objectives",
"value": "",
"type": "textarea",
"position": -905,
"id": -945,
"additionalDisplayClass": "right-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 9999
}
},
{
"name": "Start date",
"value": "",
"type": "date",
"position": -900,
"id": -940,
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "End date",
"value": "",
"type": "date",
"position": -890,
"id": -930,
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "Project Manager",
"staticContent": "<p style='font-size: 12px; color: #3617FF'><i>Quản trị dự án</i></p>",
"value": "",
"type": "user",
"position": -800,
"id": -901,
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "Project Director",
"staticContent": "<p style='font-size: 12px; color: #3617FF'><i>Giám đốc dự án</i></p>",
"value": "",
"type": "user",
"position": -780,
"id": -881,
"additionalDisplayClass": "right-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "QA HO Lead",
"value": "NgaDTT",
"display": false,
"type": "text",
"position": -760,
"id": -860,
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "CEO",
"display": false,
"value": "MinhNH7",
"type": "text",
"position": -740,
"id": -840,
"additionalDisplayClass": "right-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "Involved By Other FISx",
"value": "",
"type": "select",
"position": -180,
"id": -180,
"staticContent": "<p style='font-size: 12px; color: #3617FF'><p><i>- Nếu chỉ có đơn vị triển khai chính chọn NA</i></p><p><i>- Nếu có sự tham gia của FISx khác thì lựa chọn đúng số lượng FISx tham gia</i></p>",
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"data": [
{
"text": "",
"value": ""
},
{
"text": "NA",
"value": "NA"
},
{
"text": "1",
"value": "1"
},
{
"text": "2",
"value": "2"
},
{
"text": "3",
"value": "3"
},
{
"text": "4",
"value": "4"
}
]
}
},
{
"name": "QA Project",
"value": "",
"type": "user",
"position": -179,
"staticContent": "<p style='font-size: 12px; color: #3617FF'><p><i>Để trống nếu không cần</i></p>",
"id": -8401,
"additionalDisplayClass": "right-info",
"conditions": {
"required": false,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "FISx 1",
"value": "",
"type": "master_data_owner_dept_bs0301_bg_fisx1",
"position": -150,
"id": -150,
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"idCondition": -180,
"valueCondition": "1,2,3,4"
}
}
},
{
"name": "BG Lead of FISx 1",
"value": "",
"type": "master_data_bs0301_bgleadfisx1",
"position": -140,
"id": -140,
"additionalDisplayClass": "right-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"idCondition": -180,
"valueCondition": "1,2,3,4"
}
}
},
{
"name": "FISx 2",
"value": "",
"type": "master_data_owner_dept_bs0301_bg_fisx2",
"position": -130,
"id": -130,
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"idCondition": -180,
"valueCondition": "2,3,4"
}
}
},
{
"name": "BG Lead of FISx 2",
"value": "",
"type": "master_data_bs0301_bgleadfisx2",
"position": -120,
"id": -120,
"additionalDisplayClass": "right-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"idCondition": -180,
"valueCondition": "2,3,4"
}
}
},
{
"name": "FISx 3",
"value": "",
"type": "master_data_owner_dept_bs0301_bg_fisx3",
"position": -110,
"id": -110,
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"idCondition": -180,
"valueCondition": "3,4"
}
}
},
{
"name": "BG Lead of FISx 3",
"value": "",
"type": "master_data_bs0301_bgleadfisx3",
"position": -100,
"id": -100,
"additionalDisplayClass": "right-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"idCondition": -180,
"valueCondition": "3,4"
}
}
},
{
"name": "FISx 4",
"value": "",
"type": "master_data_owner_dept_bs0301_bg_fisx4",
"position": -90,
"id": -90,
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"idCondition": -180,
"valueCondition": "4"
}
}
},
{
"name": "BG Lead of FISx 4",
"value": "",
"type": "master_data_bs0301_bgleadfisx4",
"position": -80,
"id": -80,
"additionalDisplayClass": "right-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000,
"displayCondition": {
"idCondition": -180,
"valueCondition": "4"
}
}
},
{
"name": "Note",
"value": "",
"type": "text",
"position": -42,
"id": -42,
"additionalDisplayClass": "left-info",
"conditions": {
"required": false,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "Attachment",
"value": "",
"type": "upload",
"position": -41,
"id": -41,
"additionalDisplayClass": "right-info",
"conditions": {
"required": false,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "QA project",
"value": "YenVTh2",
"type": "user",
"display": false,
"position": -30,
"id": -30,
"additionalDisplayClass": "right-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
}
],
"multitable": [
{
"name": "List Of Employees Participating In The Project",
"id": -40,
"position": -40,
"columns": [
{
"name": "Employees name",
"value": "",
"type": "user",
"id": -1000,
"conditions": {
"required": true,
"min-length": 1,
"max-length": 255,
"multiple": true
},
"additionalDisplayClass": "left-info",
"position": -1000
},
{
"name": "Department",
"staticContent": "<p style='font-size: 12px; color: #0000ff'><i></i></p>",
"type": "text",
"value": "",
"conditions": {
"required": true
},
"additionalDisplayClass": "right-info",
"id": -990,
"position": -990
},
{
"name": "Title in the project",
"value": "",
"type": "text",
"id": -980,
"conditions": {
"required": true,
"min-length": 1,
"max-length": 255
},
"additionalDisplayClass": "left-info",
"position": -980
},
{
"name": "Role mission",
"type": "textarea",
"value": "",
"conditions": {
"required": true
},
"additionalDisplayClass": "left-info",
"id": -960,
"position": -960
},
{
"name": "Demo File",
"value": "",
"type": "upload",
"position": -920,
"id": -920,
"conditions": {
"required": false,
"max-size": 10
}
}
],
"value": []
},
{
"name": "List of project products",
"id": -30,
"position": -30,
"columns": [
{
"name": "Product name",
"value": "",
"type": "text",
"id": -1000,
"conditions": {
"required": true,
"min-length": 1,
"max-length": 255,
"multiple": true
},
"additionalDisplayClass": "left-info",
"position": -1000
},
{
"name": "Implementer",
"staticContent": "<p style='font-size: 12px; color: #0000ff'><i></i></p>",
"type": "user",
"value": "",
"conditions": {
"required": true
},
"additionalDisplayClass": "right-info",
"id": -990,
"position": -990
},
{
"name": "Reviewer",
"value": "",
"type": "user",
"id": -980,
"conditions": {
"required": true,
"min-length": 1,
"max-length": 255
},
"additionalDisplayClass": "left-info",
"position": -980
},
{
"name": "Approver",
"type": "user",
"value": "",
"conditions": {
"required": true
},
"additionalDisplayClass": "left-info",
"id": -960,
"position": -960
},
{
"name": "Start date",
"value": "",
"type": "date",
"position": -940,
"id": -940,
"additionalDisplayClass": "left-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "End date",
"value": "",
"type": "date",
"position": -930,
"id": -930,
"additionalDisplayClass": "right-info",
"conditions": {
"required": true,
"min-length": 1,
"max-length": 1000
}
},
{
"name": "File tuts",
"value": "",
"type": "upload",
"position": -920,
"id": -920,
"conditions": {
"required": false,
"max-size": 10
}
}
],
"value": []
}
]
}
1 Comment
"notifications": [ { "id": -1, "action": "CREATE_TICKET", "to": [ { "type": "TICKET_CREATOR" } ], "template": "Default Template For Ticket Creation" }, { "id": -2, "action": "CREATE_TICKET", "to": [ { "type": "TICKET_WATCHERS" } ], "template": "Default Template For Ticket Creation Send To Watchers" } ] này là gì á @tunghd ơi