{"action":"created","issue":{"url":"https://api.github.com/repos/anteo/redmine_custom_workflows/issues/5","labels_url":"https://api.github.com/repos/anteo/redmine_custom_workflows/issues/5/labels{/name}","comments_url":"https://api.github.com/repos/anteo/redmine_custom_workflows/issues/5/comments","events_url":"https://api.github.com/repos/anteo/redmine_custom_workflows/issues/5/events","html_url":"https://github.com/anteo/redmine_custom_workflows/issues/5","id":79535140,"number":5,"title":"add email support","user":{"login":"pyroit","id":9677935,"avatar_url":"https://avatars.githubusercontent.com/u/9677935?v=3","gravatar_id":"","url":"https://api.github.com/users/pyroit","html_url":"https://github.com/pyroit","followers_url":"https://api.github.com/users/pyroit/followers","following_url":"https://api.github.com/users/pyroit/following{/other_user}","gists_url":"https://api.github.com/users/pyroit/gists{/gist_id}","starred_url":"https://api.github.com/users/pyroit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pyroit/subscriptions","organizations_url":"https://api.github.com/users/pyroit/orgs","repos_url":"https://api.github.com/users/pyroit/repos","events_url":"https://api.github.com/users/pyroit/events{/privacy}","received_events_url":"https://api.github.com/users/pyroit/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-05-22T17:15:21Z","updated_at":"2015-05-26T05:20:24Z","closed_at":null,"body":"Hi,\r\nbeeing able to send email via the custom workflow. I could not find any other soultion than writing my own additional plug in, but this solution is very durty and very static. Mybe something like this can be added to the main source, but far better programmed...\r\n\r\nThis would be the comand to send a mail:\r\nMailer.custom_email(\"add string to mail subject  \", User.find(1), self).deliver   \r\n\r\nPlease be aware that my extention is highly adapted to my needs and cannot be implemented in your enviroment as is. \r\n\r\nhttps://www.dropbox.com/s/dt0uoqks8zasbbi/redmine_custom_workflow_email_support.zip?dl=0\r\n\r\nRegards\r\nMoritz"},"comment":{"url":"https://api.github.com/repos/anteo/redmine_custom_workflows/issues/comments/105396749","html_url":"https://github.com/anteo/redmine_custom_workflows/issues/5#issuecomment-105396749","issue_url":"https://api.github.com/repos/anteo/redmine_custom_workflows/issues/5","id":105396749,"user":{"login":"anteo","id":2268089,"avatar_url":"https://avatars.githubusercontent.com/u/2268089?v=3","gravatar_id":"","url":"https://api.github.com/users/anteo","html_url":"https://github.com/anteo","followers_url":"https://api.github.com/users/anteo/followers","following_url":"https://api.github.com/users/anteo/following{/other_user}","gists_url":"https://api.github.com/users/anteo/gists{/gist_id}","starred_url":"https://api.github.com/users/anteo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anteo/subscriptions","organizations_url":"https://api.github.com/users/anteo/orgs","repos_url":"https://api.github.com/users/anteo/repos","events_url":"https://api.github.com/users/anteo/events{/privacy}","received_events_url":"https://api.github.com/users/anteo/received_events","type":"User","site_admin":false},"created_at":"2015-05-26T05:20:24Z","updated_at":"2015-05-26T05:20:24Z","body":"It's not possible to refer methods declared in other workflows now (validation of workflow will not pass calls to undeclared methods)\r\nWorkflows are not place for declaring helper functions. Maybe it make sense to implement a special type of workflows (e.g. \"helper\" workflows) which will run before all other workflows in which we can declare needed functions.\r\nThen we can define \"Mail helper\" workflow and share it in online repository, which I hope implement soon."}}