Fetch value from Redmine Custom Custom field

微笑、不失礼 提交于 2019-12-25 03:36:27

问题


I have created custom field in redmine wher we type the client phone number manually.Also written a ruby code in redmine custom workflow to send sms to client when ticket id is raised.In the code I can type phone number but i actually want to fetch that phone number which we type before creating the new issue..So how do i fetch the value of phone number from the custom field and link it to the code? Please suggest me


回答1:


IssueCustomField.where("field = 8 AND value like '+31%'")

Replace the field number with the field number of your custom field and if you want to filter on some type of phone number, use the above like format



来源:https://stackoverflow.com/questions/31042603/fetch-value-from-redmine-custom-custom-field

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!