I use zapier to send sms to users when a new issue is created on Redmine. I want to make it easy for users and sophisticated. To do so; I've created a custom field on USER section which is named MOBILE. In Custom Fields menu, the user writes his/her phone number in this field.
I also created a custom field on ISSUES section. This custom field brings user list to ISSUES. User list custom field as you know is default redmine feature in ISSUES section for redmine 2.4.x.
So here is my question; I want user list custom field feature to bring user MOBILE numbers which I've created field on users accounts page. Current query brings name and surname and user to. I checked apps-models-custom_field.rb however no luck. I couldn't find a solution. I think inner join with custom_values table could solve my problem but I do not know how to do it, actually I don't know which file contains this queries for custom field user list.
Default user list feature of custom fields prints User firstname and lastname on ISSUES page also it just brings user id on the xml api. So all I want to do is get user custom field content with their user id on the xml.
I hope I've made myself clear.
What are your suggestions?