{"action":"created","issue":{"url":"https://api.github.com/repos/mautic/mautic/issues/2652","repository_url":"https://api.github.com/repos/mautic/mautic","labels_url":"https://api.github.com/repos/mautic/mautic/issues/2652/labels{/name}","comments_url":"https://api.github.com/repos/mautic/mautic/issues/2652/comments","events_url":"https://api.github.com/repos/mautic/mautic/issues/2652/events","html_url":"https://github.com/mautic/mautic/issues/2652","id":181369278,"number":2652,"title":"Custom Field Fallback Value in Email Body, Subject Line .etc (e.g. {contactfield=company, fallback=\"Your Company\"}","user":{"login":"amagdy3","id":22257012,"avatar_url":"https://avatars.githubusercontent.com/u/22257012?v=3","gravatar_id":"","url":"https://api.github.com/users/amagdy3","html_url":"https://github.com/amagdy3","followers_url":"https://api.github.com/users/amagdy3/followers","following_url":"https://api.github.com/users/amagdy3/following{/other_user}","gists_url":"https://api.github.com/users/amagdy3/gists{/gist_id}","starred_url":"https://api.github.com/users/amagdy3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amagdy3/subscriptions","organizations_url":"https://api.github.com/users/amagdy3/orgs","repos_url":"https://api.github.com/users/amagdy3/repos","events_url":"https://api.github.com/users/amagdy3/events{/privacy}","received_events_url":"https://api.github.com/users/amagdy3/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mautic/mautic/labels/Feature%20Request","name":"Feature Request","color":"207de5"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-10-06T09:47:23Z","updated_at":"2016-10-12T18:17:30Z","closed_at":null,"body":"What type of report is this:\r\n\r\n| Q  | A\r\n| ---| ---\r\n| Bug report? | \r\n| Feature request? | Yes\r\n| Enhancement? | \r\n\r\n## Description:\r\nWhile creating a campaign referencing variables such as {contactfield=company} - (e.g. \"3X Sales for {contactfield=company} in 2017\") I wanted to have a different headline for those who don't have the company field populated as for those the subject line will be sent as \"3X Sales for in 2017\" which is not good.\r\n\r\nThis got me thinking whether it would make sense to establish conditions for the subject line similar to the Dynamic Email Content feature recently introduced to matuic?\r\n\r\nOr it would be better to do this filtration level in a campaign and create different emails to be sent depending on this condition.\r\n\r\nIn some cases I don't want to create a campaign and just send a broadcast email that's when the campaign idea is a lot more work than necessary.\r\n\r\n\r\n## If a bug:\r\n\r\n| Q   | A\r\n| --- | ---\r\n| Mautic version | \r\n| PHP version | \r\n\r\n### Steps to reproduce:\r\n1. \r\n2. \r\n \r\n### Log errors: \r\n\r\n_Please check for related errors in the latest log file in [mautic root]/app/log/ and/or the web server's logs and post them here. Be sure to remove sensitive information if applicable._ \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/mautic/mautic/issues/comments/253294323","html_url":"https://github.com/mautic/mautic/issues/2652#issuecomment-253294323","issue_url":"https://api.github.com/repos/mautic/mautic/issues/2652","id":253294323,"user":{"login":"amagdy3","id":22257012,"avatar_url":"https://avatars.githubusercontent.com/u/22257012?v=3","gravatar_id":"","url":"https://api.github.com/users/amagdy3","html_url":"https://github.com/amagdy3","followers_url":"https://api.github.com/users/amagdy3/followers","following_url":"https://api.github.com/users/amagdy3/following{/other_user}","gists_url":"https://api.github.com/users/amagdy3/gists{/gist_id}","starred_url":"https://api.github.com/users/amagdy3/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amagdy3/subscriptions","organizations_url":"https://api.github.com/users/amagdy3/orgs","repos_url":"https://api.github.com/users/amagdy3/repos","events_url":"https://api.github.com/users/amagdy3/events{/privacy}","received_events_url":"https://api.github.com/users/amagdy3/received_events","type":"User","site_admin":false},"created_at":"2016-10-12T18:17:30Z","updated_at":"2016-10-12T18:17:30Z","body":"Thanks guys, this worked for me. Straight forward in the subject line.\r\n\r\nOnly that I couldn't get it to type or edit it in the body of the Email while using the WYSIWYG editor as it auto select it and doesn't allow adding more content inside the }. I had to switch to HTML view and edit it there and it worked."}}
{"actor":{"display_login":"amagdy3"}}