当您为 工单、 用户、 组织或 自定义对象创建新的下拉字段或多选字段时,您可能需要包含大量的字段值。例如,一个允许专员选择软件版本或产品类型的新字段可能包含数百个选项。您可以通过批量导入添加多个字段值,而不是手动添加字段值。您还可以导出自定义下拉和多选字段和值,以便存档或在其他应用程序中使用。
导入值仅在创建新的下拉字段或多选字段期间可用。您无法导入现有字段的值。
创建 CSV 字段值文件
要导入自定义下拉字段和多选字段的值,您必须先创建一个包含您要添加的值的 CSV(逗号分隔值)文件。您可以下载模板 CSV 文件,并在模型中添加您自己的字段值。请参考以下示例。
字段 | 描述 |
---|---|
value | (必填)在工单、用户、组织和自定义对象的下拉框或多选字段中显示的值。 |
工单标签 | (推荐)与字段值关联的标签。标签 用作工单属性,可用于触发器和其他业务规则。 |
默认 | (仅限工单字段)标识下拉或多选字段的默认值。使用 true 来标识默认值。对于所有其他值,请使用 false。 |
当您创建要导入的字段值列表时,您可能会从某个其他系统生成此值列表。大多数此类系统都允许创建 CSV 导出文件。如果您需要从头创建列表,可以使用 Excel 或 Google Sheets 等程序。
文件必须为正确的 CSV 格式,并使用 UTF-8 字符编码保存。实际支持的值数取决于字段类型,但导入的 CSV 数据文件最多可包含 3,500 行数据(一行用于标题,其余用于字段值)。
将 CSV 字段值文件导入到新的自定义字段
创建 CSV 文件后,您可以将这些值导入到新的下拉或多选字段中。您无法为现有的下拉字段和多选字段上传 CSV 文件。
- 在管理中心中,导航到正确的位置以添加新的自定义下拉字段或多选字段:
- 单击 添加字段 ,然后选择 下拉 或多 选。
- 在 字段值中,单击 上传 CSV。
- 单击 选择文件 并打开您要导入的 CSV 文件,然后单击 上传。或者,您可以拖放要导入的文件。
- 成功上传 CSV 文件后, 字段值 会更新以包含新数据。
- 完成添加关于您的新字段的信息,然后 保存 您的更改。
导出自定义下拉列表和多选字段的字段和值
随着 工单、 用户、 组织或 自定义对象 自定义字段和字段值列表的扩展,您可能会发现将自定义字段和值导出到 CSV 文件很有用。例如,您可能想将该 CSV 文件用作检查列表,以验证有最新产品类型或软件版本是否可用于您的工单。
导出自定义工单、用户或组织字段列表
- 导航到自定义字段列表:
- (可选)对列表进行筛选或排序,或更改要显示的列。这将更改导出的 CSV 文件中包含的内容。
- 单击页面顶部的 操作 ,然后选择 下载 CSV,以便以 CSV 格式导出工单字段列表。
导出的文件默认包含每个工单字段的以下信息:显示名称、 类型、 字段 ID、 修改日期和 标签。例如:
该文件可在文本编辑器和电子表格应用程序(例如 Microsoft Excel 或 Google Sheets)中打开,以进行进一步处理。
翻译免责声明:本文章使用自动翻译软件翻译,以便您了解基本内容。 我们已采取合理措施提供准确翻译,但不保证翻译准确性
如对翻译准确性有任何疑问,请以文章的英语版本为准。
13 条评论
Heather Rommel
Hi Patrick Wilson,
That's interesting! I've not seen special characters import like that.
The key to custom fields is that you can change the visible name of the fields as long as you keep the tag the same and you should be fine. In other words, you should be able to rename  BP::BP5::Firmware::Accuracy to just BP::BP5::Firmware::Accuracy
... and not affect your reports as long as you keep the tag associated exactly the same.
Hope this helps!
1
Patrick Wilson
I have a field called "Reason", this was setup 8 years ago via an import. the format is Device > model > reason. Today when adding a new model, I ended up with a duplicate menu. After really digging into this, everything looked the same on the field values.
Device - BP::BP5::Basic::Availability
Device - BP::BP5S::Basic::Availability
But I keep ending up with two menus called Device-BP. After exporting the fields, I saw the error. What was imported originally had some weird characters..
(originally imported) Device - BP::BP5::Firmware::Accuracy
(keyed in today) Device - BP::BP5S::Basic::Availability
Is there anyway to fix the old ones or type in the new ones? I don't want my team to have to have two menu choices that are the same.
1
David Judenne
Hello,
It's bad that we can't import a csv fiels if the ticket field is not new, I have a list use but this list is update after a while with big change, so can't manually change the 600 line and I don't want create a new ticket fields because then all the data use on previous ticket will be save under a different ID and for my reporting I need to check 2 different fiels :(
So can you think about import csv on existing ticket field even if this delete actual list ?
Thanks
27
登录以发表评论。