redmine computed custom field formula tips

项目中要用到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方法。

 

posted @ 2016-08-05 22:12  LustForLife  阅读(540)  评论(0编辑  收藏  举报