首页 > 其他 > 详细

redmine computed custom field formula tips

时间:2016-08-05 23:06:55      阅读:552      评论:0      收藏:0      [点我收藏+]

项目中要用到Computed custom field插件,公式不知道怎么写,查了些资料,记录在这里。

1、http://apidock.com/ruby/Time/strftime 查看ruby的字符串格式,用于改写

2、https://github.com/annikoff/redmine_plugin_computed_custom_field/issues/34 看到formula里可以写复杂代码,比如增加变量、指定返回值等。

3、http://ruby-doc.org/stdlib-2.3.1/libdoc/date/rdoc/Date.html#method-i-2D 查看Date类的方法,包括日期减少等。

4、http://stackoverflow.com/questions/3599239/ruby-string-to-date-conversion 查看到to_date方法。

 

redmine computed custom field formula tips

原文:http://www.cnblogs.com/lustforlife/p/5742892.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!