51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 3924|回复: 3
打印 上一主题 下一主题

[原创] 关于Mantis查看问题中BUG列表添加新列的问题

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-7-15 11:28:22 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
小弟新接触MANTIS,希望能够在查看问题页面中的BUG列表中添加“报告人”一列,曾在网上看到“修改mantis/core目录下的custom_function_api.php文件.

在文件第204行附近添加一行:数组$t_columns[]里添加一个字段值‘reporter_id’

”这样的方法,不知道怎么添加,自己折腾了半天没有效果,还请各位指教。
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
发表于 2009-7-15 17:27:23 | 只看该作者
解决方法:

进入mantis,依次选择 管理->配置管理->configuration_report

到页面的最下方,帐号选择all users,项目名称选择你希望设置生效的项目,configuration option写view_issues_page_columns,类型默认就好,值设为array ( 'selection', 'edit', 'priority', 'id', 'sponsorship_total', 'bugnotes_count', 'attachment', 'category', 'severity', 'status', 'last_updated', 'summary' );这里的项可以自己添加,但是得保证和配置文件中的名字一致,要不内容不会自动添进去
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2009-7-21 11:56:09 | 只看该作者
添加的内容只有标题,并没有获取到实际的值
回复 支持 反对

使用道具 举报

该用户从未签到

4#
发表于 2009-8-6 18:05:47 | 只看该作者
BUG列表中添加“报告人”一列,默认就有啊,reporter_idr就是的.
    *
      selection - The tick box that allows the selection of the bugs to perform a group operation on.
    *
      edit - The pen that allows opening an issue in Edit mode.
    *
      id - The issue id.
    *
      project_id - The project name
    *
      duplicate_id - The id of the last duplicate set for an issue.
    *
      reporter_id - The reporter of the issue.
    *
      handler_id - The handler of the issue (i.e. the person assigned the issue).
    *
      priority - The issue priority.
    *
      reproducibility - The issue reproducibility.
    *
      projection - The issue projection.
    *
      eta - The issue fix eta.
    *
      resolution - The issue resolution.
    *
      target_version - The issue target version.
    *
      fixed_in_version - The issue fixed in version.
    *
      view_state - The issue view state (private vs. public).
    *
      os - The OS to which the issue applies.
    *
      os_build - The OS Build to which the issue applies.
    *
      platform - The platform to which the issue applies.
    *
      version - The product version to which the issue applies.
    *
      attachment - The column that identifies whether an issue has attachments.
    *
      category - The issue category.
    *
      severity - The issue severity.
    *
      status - The issue status.
    *
      last_updated - The issue last updated time stamp.
    *
      summary - The issue summary.
    *
      bugnotes_count - The number of notes associated with the issue.
    *
      custom_xyz - Custom field with name “xyz”.
参考http://www.mantisbt.org/wiki/dok ... in_view_issues_page
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-9-22 19:33 , Processed in 0.082254 second(s), 28 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表