跳到主要内容

ones

简介

组件接口

ones.gs

函数原型函数作用
object login(string email, string password)用户登录
map invite_join_team(string email, string password, string name, string invite_code)邀请成员确认加入

Session.gs

函数原型函数作用
map auth_token_info()获取登录信息
map auth_logout()用户登出
map users_me()获取当前用户信息
map team_users_update(string team_uuid, map data)修改团队成员信息
map team_invitations_add_batch(string team_uuid, map data)邀请成员
map organization_disable_members(string organization_uuid, map data)禁用用户
map team_invitations(string team_uuid)查看邀请记录
map team_delete_members(string team_uuid, map data)删除用户
map team_departments(string team_uuid)获取团队部门列表
map team_departments_add(string team_uuid, map data)添加部门
map team_department_update(string team_uuid, string department_uuid, map data)修改部门信息
map team_department_delete(string team_uuid, string department_uuid, map data)删除部门
map team_users_update_department(string team_uuid, map data)批量修改成员所属部门
map team_info(string team_uuid)获取团队信息
map team_members(string team_uuid)获取团队成员列表
map team_delete_member(string team_uuid, map data)移除团队成员
map team_member(string team_uuid, string user_uuid)获取团队成员
map organization_info(string organization_uuid)获取组织信息
map organization_add(string organization_uuid, map data)将组织成员添加到团队
map organization_delete_member(string organization_uuid, map data)删除组织成员
map organization_teams(string organization_uuid)获取组织下所有团队
map organization_my_teams(string organization_uuid)获取用户有权限的所有团队
map organization_members(string organization_uuid)获取组织成员列表
map organization_service(string organization_uuid)获取组织额外支持信息
map organization_sso_sync_data(string organization_uuid)获取第三方组织架构信息
map organization_team_sync_data(string organization_uuid, string team_uuid)在组织下获取某团队绑定的第三方组织信息
map team_versions(string team_uuid)获取版本管理列表
map team_versions_add(string team_uuid, map data)新建版本管理
map team_version_update(string team_uuid, string version_uuid, map data)编辑版本管理
map team_version_delete(string team_uuid, string version_uuid, map data)删除版本管理
map team_version_sprints_add(string team_uuid, string version_uuid, map data)关联迭代
map team_version_sprint_delete(string team_uuid, string version_uuid, string sprint_uuid, map data)移出关联的迭代
map team_version_products_add(string team_uuid, string version_uuid, map data)关联产品
map team_version_product_delete(string team_uuid, string version_uuid, string product_uuid, map data)移出关联的产品
map team_permission_rules(string team_uuid)获取权限规则列表
map team_evaluated_permissions(string team_uuid)获取当前用户拥有的所有权限
map team_permission_rules_add(string team_uuid, map data)添加权限规则
map team_permission_rule_delete(string team_uuid, string rule_uuid, map data)删除权限规则
map team_usergroups(string team_uuid)获取用户组列表
map team_usergroups_add(string team_uuid, map data)创建用户组
map team_usergroup_update(string team_uuid, string usergroup_uuid, map data)修改用户组
map team_usergroup_delete(string team_uuid, string usergroup_uuid, map data)删除用户组
map team_projects_add(string team_uuid, map data)添加项目
map team_projects_copy2(string team_uuid, map data)复制项目
map team_item_update(string team_uuid, string item_key, map data)更新项目
map team_project_delete(string team_uuid, string project_uuid, map data)删除项目
map team_projects_info(string team_uuid)根据项目 id 获取项目列表
map team_projects_my_project(string team_uuid)获取当前用户项目列表
map team_projects_all(string team_uuid)获取团队的项目列表
map team_tasks_add2(string team_uuid, map data)添加工作项
map team_tasks_update3(string team_uuid, map data)更新工作项
map team_task_delete(string team_uuid, string task_uuid, map data)删除工作项
map team_task_stats(string team_uuid)获取工作项统计数据接口
map team_task_copy(string team_uuid, string task_uuid, map data)复制工作项
map team_task_info(string team_uuid, string task_uuid)获取工作项详情
map team_tasks_info(string team_uuid, map params)批量获取工作项详情
map team_issue_types_add(string team_uuid, map data)添加工作项类型
map team_issue_type_update(string team_uuid, string issue_type_uuid, map data)修改工作项类型
map team_issue_type_delete(string team_uuid, string issue_type_uuid, map data)删除工作项类型
map team_issue_types(string team_uuid)获取工作项类型列表
map team_project_issue_types_add(string team_uuid, string project_uuid, map data)在项目中添加工作项类型
map team_project_issue_type_delete(string team_uuid, string project_uuid, string issue_type_uuid, map data)在项目中删除工作项类型
map team_issue_type_configs(string team_uuid)获取工作项类型配置列表
map team_task_statuses_add(string team_uuid, map data)创建工作项状态
map team_task_status_update(string team_uuid, string task_status_uuid, map data)修改工作项状态
map team_task_status_delete(string team_uuid, string task_status_uuid, map data)删除工作项状态
map team_task_statuses(string team_uuid)获取工作项状态列表
map team_fields_add(string team_uuid, map data)创建全局属性
map team_field_update(string team_uuid, string field_uuid, map data)修改全局属性
map team_field_delete(string team_uuid, string field_uuid, map data)删除全局属性
map team_fields(string team_uuid)获取全局属性列表
map team_field_configs(string team_uuid)获取属性配置列表
map team_project_sprints_add(string team_uuid, string project_uuid, map data)添加迭代
map team_project_sprints_update(string team_uuid, string project_uuid, map data)更新迭代
map team_project_sprint_delete(string team_uuid, string projet_uuid, string sprint_uuid, map data)删除迭代
map team_project_sprints(string team_uuid, string project_uuid)获取项目下当前用户可见的迭代列表
map team_sprints_all(string team_uuid)获取团队中所有迭代详情
map team_project_sprint_fields_add(string team_uuid, string project_uuid, map data)添加项目下迭代属性
map team_project_sprint_field_update(string team_uuid, string project_uuid, string field_uuid, map data)修改项目下迭代属性
map team_project_sprint_field_delete(string team_uuid, string project_uuid, string field_uuid, map data)删除项目下迭代属性
map team_project_sprint_fields(string team_uuid, string project_uuid)获取项目下迭代属性列表
map team_project_sprint_sprint_field_update(string team_uuid, string project_uuid, string sprint_uuid, string field_uuid, map data)修改迭代属性值
map team_project_sprint_statuses_add(string team_uuid, string project_uuid, map data)添加项目下迭代阶段
map team_project_sprint_status_update(string team_uuid, string project_uuid, string status_uuid, map data)修改项目下迭代阶段
map team_project_sprint_status_delete(string team_uuid, string project_uuid, string status_uuid, map data)删除项目下迭代阶段
map team_project_sprint_statuses(string team_uuid, string project_uuid)获取项目迭代阶段列表
map team_project_sprint_sprint_statuses_update(string team_uuid, string project_uuid, string sprint_uuid, map data)修改迭代属性值
map team_transitions(string team_uuid)获取团队工作流列表
map team_task_transitions(string team_uuid, string task_uuid)获取工作项对应工作流状态
map team_project_issue_type_transition_update(string team_uuid, string project_uuid, string issue_type_uuid, string transition_uuid, map data)修改工作流
map team_task_new_transit(string team_uuid, string task_uuid, map data)对任务执行工作流
map team_filters(string team_uuid)获取全局筛选器列表
map team_filters_peek(string team_uuid, map data)获取某个过滤条件下的任务列表
map team_filters_export(string team_uuid, map data)任务列表任务导出
map team_project_filters(string team_uuid, string project_uuid)获取项目筛选器列表
map team_task_messages(string team_uuid, string task_uuid)获取任务讨论消息
map team_task_send_message(string team_uuid, string task_uuid, map data)任务讨论发送消息
map team_project_reports_peek(string team_uuid, string project_uuid, map data)临时生成项目报表数据
map team_project_report_build(string team_uuid, string project_uuid, string report_uuid)生成常用项目报表数据
map team_project_reports_add(string team_uuid, string project_uuid, map data)添加常用项目报表
map team_project_report_update(string team_uuid, string project_uuid, string report_uuid, map data)更新常用项目报表
map team_project_report_delete(string team_uuid, string project_uuid, string report_uuid, map data)删除常用项目报表
map team_project_reports(string team_uuid)获取常用项目报表列表
map team_project_built_in_reports(string team_uuid, string project_uuid)获取系统项目报表列表
map team_project_reports_export(string team_uuid, string project_uuid, map data)导出报表数据
map team_project_reports_manhour_detail_peek(string team_uuid, string project_uuid, map data)临时生成项目工时流水报表数据
map team_project_reports_manhour_detail_export(string team_uuid, string project_uuid, map data)导出项目工时报表报表数据
map team_roles_add(string team_uuid, map data)创建角色
map team_role_update(string team_uuid, string role_uuid, map data)修改角色
map team_role_delete(string team_uuid, string role_uuid, map data)删除角色
map team_stamps_data(string team_uuid, map data)获取角色列表
map team_project_roles_add(string team_uuid, string project_uuid, map data)添加角色配置
map team_project_role_delete(string team_uuid, string project_uuid, string role_uuid, map data)删除角色配置
map team_project_stamps_data(string team_uuid, string project_uuid, map data)获取角色配置列表
map team_project_role_members_add(string team_uuid, string project_uuid, string role_uuid, map data)在项目角色下添加成员
map team_project_role_members_delete(string team_uuid, string project_uuid, string role_uuid, map data)在项目角色下移除成员
map team_project_role_members_update(string team_uuid, string project_uuid, string role_uuid, map data)替换项目下的角色成员
map team_project_role_members(string team_uuid, string project_uuid)获取项目下的角色成员
map team_task_related_tasks(string team_uuid, string task_uuid, map data)批量添加关联工作项
map team_task_delete_related_tasks(string team_uuid, string task_uuid, map data)批量删除关联工作项
map team_task_bind_wiki_page(string team_uuid, string task_uuid, map data)添加关联 wiki 页面
map team_task_unbind_wiki_page(string team_uuid, string task_uuid, map data)移除关联 wiki 页面
map team_task_assess_manhour_update(string team_uuid, string task_uuid, map data)编辑预估工时
map team_task_remaining_hour_update(string team_uuid, string task_uuid, map data)编辑剩余工时
map wiki_team_spaces(string team_uuid)获取页面组列表
map wiki_team_spaces_add(string team_uuid, map data)新增页面组
map wiki_team_space(string team_uuid, string space_uuid)获取页面组详情
map wiki_team_space_update(string team_uuid, string space_uuid, map data)更新页面组
map wiki_team_space_delete(string team_uuid, string space_uuid, map data)删除
map wiki_team_space_archive(string team_uuid, string space_uuid, map data)归档
map wiki_team_my_spaces(string team_uuid)获取用户可见的页面组列表
map wiki_team_recent_spaces(string team_uuid)获取最近浏览页面组列表
map wiki_team_spaces_card_report_data(string team_uuid, map data)获取页面组卡片的报表数据
map wiki_team_space_browse(string team_uuid, string space_uuid, map data)记录页面组浏览接口
map wiki_team_space_pin(string team_uuid, string space_uuid, map data)置顶页面组
map wiki_team_space_unpin(string team_uuid, string space_uuid, map data)取消置顶页面组
map wiki_team_team_space_limit(string team_uuid)获取免费团队的新建页面时是否超出限额
map wiki_team_space_share_pages(string team_uuid, string space_uuid)获取页面组的分享页面列表
map wiki_team_space_page(string team_uuid, string space_uuid, string page_uuid)获取页面详情
map wiki_team_page(string team_uuid, string page_uuid)获取页面详情(路由中不带 space_uuid)
map wiki_team_space_page_delete(string team_uuid, string space_uuid, string page_uuid, map data)删除页面
map wiki_team_space_pages(string team_uuid, string space_uuid)获取页面组的页面列表
map wiki_team_space_pages_with_history(string team_uuid, string space_uuid)获取页面组的带历史的页面列表
map wiki_team_space_encrypt_pages(string team_uuid, string space_uuid)获取页面组的已加密的页面列表
map wiki_team_space_page_watch(string team_uuid, string space_uuid, string page_uuid, map data)关注/取消关注页面
map wiki_team_space_page_update(string team_uuid, string space_uuid, string page_uuid, map data)移动页面
map wiki_team_space_page_history(string team_uuid, string space_uuid, string page_uuid)页面的历史版本
map wiki_team_page_history(string team_uuid, string page_uuid)页面历史版本(路由不带 space_uuid)
map wiki_team_space_page_revert(string team_uuid, string space_uuid, string page_uuid, map data)页面回滚特定版本
map wiki_team_space_page_sort(string team_uuid, string space_uuid, string page_uuid, map data)页面排序
map wiki_team_space_page_attachments(string team_uuid, string space_uuid, string page)获取页面附件
map wiki_team_space_page_attachments_update(string team_uuid, string space_uuid, string page_uuid, map data)更新页面附件
map wiki_team_space_page_messages(string team_uuid, string space_uuid, string page_uuid)获取页面的 messages
map wiki_team_space_page_export(string team_uuid, string space_uuid, string page_uuid)页面导出
map wiki_team_space_page_send_comment(string team_uuid, string space_uuid, string page_uuid, map data)发送页面评论
map wiki_team_space_page_check_version_conflict(string team_uuid, string space_uuid, string page_uuid, map data)检查页面冲突
map wiki_team_online_pages_add(string team_uuid, map data)创建协同页面
map wiki_team_online_page_token(string team_uuid, string page_uuid, map params)获取页面 Token
map wiki_team_online_page_content(string team_uuid, string page_uuid)获取页面正文
map wiki_team_online_page_publish(string team_uuid, string page_uuid, map data)发布页面
map wiki_team_online_page_update_title(string team_uuid, string page_uuid, map data)更新标题
map wiki_team_online_page_revert(string team_uuid, string page_uuid, string version, map data)恢复历史版本
map wiki_team_space_drafts(string team_uuid, string space_uuid)获取草稿列表
map wiki_team_space_draft(string team_uuid, string space_uuid, string draft_uuid)获取草稿详情
map wiki_team_draft(string team_uuid, string draft_uuid)获取草稿详情(路由不带 space_uuid)
map wiki_team_space_drafts_add(string team_uuid, string space_uuid, map data)创建草稿
map wiki_team_space_draft_update(string team_uuid, string space_uuid, string draft_uuid, map data)保存/发布草稿
map wiki_team_space_draft_delete(string team_uuid, string space_uuid, string draft_uuid, map data)删除草稿
map wiki_team_space_draft_attachments(string team_uuid, string space_uuid, string draft_uuid)获取草稿附件
map wiki_team_space_draft_attachments_update(string team_uuid, string space_uuid, string draft_uuid, map data)更新草稿附件
map wiki_team_share_drafts(string team_uuid, string share_uuid, map data)获取分享页面列表的草稿列表
map wiki_team_online_draft_add(string team_uuid, map data)创建协同草稿(临时草稿、页面复制、从模板创建)
map wiki_team_online_draft_token(string team_uuid, string draft_uuid, map params)获取草稿 Token
map wiki_team_online_draft_content(string team_uuid, string draft_uuid)获取草稿正文
map wiki_team_online_draft_publish(string team_uuid, string draft_uuid, map data)发布草稿
map wiki_team_online_draft_update_title(string team_uuid, string draft_uuid, map data)更新标题
map wiki_team_permission_rules(string team_uuid)获取 wiki 权限
map wiki_team_permission_rules_add(string team_uuid, map data)添加 wiki 权限
map wiki_team_permission_rule_delete(string team_uuid, string rule_uuid, map data)删除 wiki 权限
map wiki_team_evaluated_permissions(string team_uuid)获取 wiki 有效权限
map wiki_team_space_page_set_permissions(string team_uuid, string space_uuid, string page_uuid, map data)设置单页面权限
map wiki_team_space_page_get_permissions(string team_uuid, string space_uuid, string page_uuid)获取单页面权限
map wiki_team_space_page_set_share_permissions(string team_uuid, string space_uuid, string page_uuid, map data)设置页面分享权限
map wiki_team_space_page_get_share_permissions(string team_uuid, string space_uuid, string page_uuid)获取页面分享权限
map wiki_team_space_deleted_page(string team_uuid, string space_uuid, string page_uuid)获取回收站内的页面详情
map wiki_team_space_deleted_page_delete(string team_uuid, string space_uuid, string page_uuid, map data)删除回收站内的页面
map wiki_team_space_deleted_pages(string team_uuid, string space_uuid)获取回收站内的页面列表
map wiki_team_space_deleted_page_restore(string team_uuid, string space_uuid, string page_uuid, map data)恢复回收站内的页面
map wiki_team_space_delete_all_pages(string team_uuid, string space_uuid, map data)清空回收站
map team_testcase_library_download_template(string team_uuid, string library_uuid)下载导入模板
map team_testcase_library_upload(string team_uuid, string library_uuid, map data)上传导入文件
map team_testcase_library_import(string team_uuid, string library_uuid, map data)导入用例
map team_testcase_library_cases_update(string team_uuid, string library_uuid, map data)修改测试用例
map team_testcase_library_cases_delete(string team_uuid, string library_uuid, map data)删除测试用例
map team_testcase_library_cases(string team_uuid, string library_uuid)获取某个用例库下的用例列表
map team_testcase_libraries_add(string team_uuid, map data)添加用例库
map team_testcase_library_update(string team_uuid, string library_uuid, map data)修改用例库
map team_testcase_library_delete(string team_uuid, string library_uuid, map data)删除用例库
map team_testcase_libraries(string team_uuid)获取用例库列表
map team_testcase_library_modules_add(string team_uuid, string library_uuid, map data)添加用例库模块
map team_testcase_library_modules_delete(string team_uuid, string library_uuid, map data)删除用例库模块
map team_testcase_library_modules_update(string team_uuid, string library_uuid, map data)修改用例库模块
map team_testcase_bind_case(string team_uuid, map data)绑定测试用例到任务
map team_testcase_unbind_case(string team_uuid, map data)解除测试用例和任务的绑定
map team_testcase_search(string team_uuid)按 ID 搜索测试用例
map team_testcase_library_modules_sort(string team_uuid, string library_uuid, map data)调整功能模块位置
map team_testcase_plans_add(string team_uuid, map data)创建测试计划
map team_testcase_plan_update(string team_uuid, string plan_uuid, map data)修改测试计划
map team_testcase_plan_delete(string team_uuid, string plan_uuid, map data)删除测试计划
map team_testcase_plans(string team_uuid)获取测试计划列表
map team_testcase_plan_cases_add(string team_uuid, string plan_uuid, map data)在测试计划中添加用例
map team_testcase_plan_cases_update(string team_uuid, string plan_uuid, map data)修改测试计划用例
map team_testcase_plan_cases_delete(string team_uuid, string plan_uuid, map data)删除测试计划用例
map team_testcase_plan_cases_copy(string team_uuid, string plan_uuid, map data)将测试计划中的用例复制到另一个计划
map team_testcase_plan_cases(string team_uuid, string plan_uuid)获取测试计划中的用例
map team_related_project_config_update(string team_uuid, string project_uuid, map data)修改关联项目配置
map team_related_project_default_members_add(string team_uuid, string project_uuid, map data)添加默认成员
map team_related_project_default_members_delete(string team_uuid, string project_uuid, map data)删除默认成员
map projectteam_testcase_report_view_report(string team_uuid, string report_uuid)查看测试报告
map projectteam_testcase_report_update_report(string team_uuid, string report_uuid, map data)更新测试报告
map projectteam_testcase_report_export_report(string team_uuid, string report_uuid, map data)导出测试报告
map projectteam_testcase_report_download(string team_uuid, string report_uuid)下载测试报告
map team_res_attachments_upload(string team_uuid, map data)上传资源
map team_res_attachment(string team_uuid, string attachment_uuid)获取附件资源
map team_project_attachments(string team_uuid, string project_uuid)获取项目相关附件资源列表
map team_task_attachments(string team_uuid, string task_uuid, map params)获取任务相关附件资源列表
map team_milestone_milestone(string team_uuid, string milestone_uuid, map params)获取里程碑附件资源列表
map team_res_attachments_delete(string team_uuid, map data)批量删除资源
map team_res_attachment_update(string team_uuid, string attachment_uuid, map data)修改资源名字和描述
map team_res_attachments(string team_uuid, map params)批量获取附件资源
map team_items_graphql(string team_uuid, map data)查询 Item 列表数据
map team_items_add(string team_uuid, map data)添加 Item
map team_items_batch_add(string team_uuid, map data)批量添加 Item
map team_items_update(string team_uuid, string item_key, map data)更新 Item
map team_items_delete(string team_uuid, string item_key, map data)删除 Item
map team_gantt_chart_sync(string team_uuid, string gantt_chart_uuid, map data)同步 Project 数据

常量

public const string HOST = "ones.g-bits.com";
public const int PORT = 21001;