{"action":"created","issue":{"url":"https://api.github.com/repos/washingtontrails/vms/issues/505","labels_url":"https://api.github.com/repos/washingtontrails/vms/issues/505/labels{/name}","comments_url":"https://api.github.com/repos/washingtontrails/vms/issues/505/comments","events_url":"https://api.github.com/repos/washingtontrails/vms/issues/505/events","html_url":"https://github.com/washingtontrails/vms/issues/505","id":124866071,"number":505,"title":"VMS: Email to crew leader when work party is published","user":{"login":"WaBirder57","id":8312206,"avatar_url":"https://avatars.githubusercontent.com/u/8312206?v=3","gravatar_id":"","url":"https://api.github.com/users/WaBirder57","html_url":"https://github.com/WaBirder57","followers_url":"https://api.github.com/users/WaBirder57/followers","following_url":"https://api.github.com/users/WaBirder57/following{/other_user}","gists_url":"https://api.github.com/users/WaBirder57/gists{/gist_id}","starred_url":"https://api.github.com/users/WaBirder57/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/WaBirder57/subscriptions","organizations_url":"https://api.github.com/users/WaBirder57/orgs","repos_url":"https://api.github.com/users/WaBirder57/repos","events_url":"https://api.github.com/users/WaBirder57/events{/privacy}","received_events_url":"https://api.github.com/users/WaBirder57/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/washingtontrails/vms/labels/Bug","name":"Bug","color":"5319e7"},{"url":"https://api.github.com/repos/washingtontrails/vms/labels/High%20Priority","name":"High Priority","color":"e11d21"},{"url":"https://api.github.com/repos/washingtontrails/vms/labels/Salesforce","name":"Salesforce","color":"0052cc"},{"url":"https://api.github.com/repos/washingtontrails/vms/labels/VMS%20BUDGET","name":"VMS BUDGET","color":"f7c6c7"}],"state":"open","locked":false,"assignee":{"login":"drewpiston","id":2659121,"avatar_url":"https://avatars.githubusercontent.com/u/2659121?v=3","gravatar_id":"","url":"https://api.github.com/users/drewpiston","html_url":"https://github.com/drewpiston","followers_url":"https://api.github.com/users/drewpiston/followers","following_url":"https://api.github.com/users/drewpiston/following{/other_user}","gists_url":"https://api.github.com/users/drewpiston/gists{/gist_id}","starred_url":"https://api.github.com/users/drewpiston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewpiston/subscriptions","organizations_url":"https://api.github.com/users/drewpiston/orgs","repos_url":"https://api.github.com/users/drewpiston/repos","events_url":"https://api.github.com/users/drewpiston/events{/privacy}","received_events_url":"https://api.github.com/users/drewpiston/received_events","type":"User","site_admin":false},"milestone":null,"comments":3,"created_at":"2016-01-04T23:57:30Z","updated_at":"2016-01-07T01:18:31Z","closed_at":null,"body":"@mscholtz Right now when a crew leader is assigned to a work party they get an email notification of this right at that time.  During this planning phase it could be way in the future and the CL can be changed frequently during this planning phase.\r\n\r\nWe would like this email notification to the Crew Leader be emailed when the Work Party is first published."},"comment":{"url":"https://api.github.com/repos/washingtontrails/vms/issues/comments/169515718","html_url":"https://github.com/washingtontrails/vms/issues/505#issuecomment-169515718","issue_url":"https://api.github.com/repos/washingtontrails/vms/issues/505","id":169515718,"user":{"login":"drewpiston","id":2659121,"avatar_url":"https://avatars.githubusercontent.com/u/2659121?v=3","gravatar_id":"","url":"https://api.github.com/users/drewpiston","html_url":"https://github.com/drewpiston","followers_url":"https://api.github.com/users/drewpiston/followers","following_url":"https://api.github.com/users/drewpiston/following{/other_user}","gists_url":"https://api.github.com/users/drewpiston/gists{/gist_id}","starred_url":"https://api.github.com/users/drewpiston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/drewpiston/subscriptions","organizations_url":"https://api.github.com/users/drewpiston/orgs","repos_url":"https://api.github.com/users/drewpiston/repos","events_url":"https://api.github.com/users/drewpiston/events{/privacy}","received_events_url":"https://api.github.com/users/drewpiston/received_events","type":"User","site_admin":false},"created_at":"2016-01-07T01:18:31Z","updated_at":"2016-01-07T01:18:31Z","body":"Hi @WaBirder57 ,\r\n\r\nThis is going to be a little more complicated than I first thought... I won't go into all the details, but basically the reason it's is hard is that right the action that fires an email is inserting a WP Reg, but with this change we would need to fire off an email off a change to the Work Party.  In order to truly do that we'd probably need to write some code.\r\n\r\nStrangely enough, it would actually be easier to follow this plan of attack:\r\n1. Prevent leaders from receiving the normal registration confirmation emails\r\n2. Create a single, generic email to be sent to a leader whenever they are assigned as leader to a Published WP OR whenever a WP they are already assigned to is published. This could still contain information about the Work Party (e.g., Start Date, Time, Type, etc), but it wouldn't be tailored to the Work Party Type.\r\n\r\nEither is fine with us, just wanted to give you the generic leader email option in case that is something that might be preferred anyway.\r\n\r\nThanks!\r\n Drew"}}