{"action":"created","comment":{"url":"https://api.github.com/repos/StackStorm/st2/pulls/comments/44605940","id":44605940,"diff_hunk":"@@ -159,6 +181,22 @@ def _post_notify_subsection_triggers(self, liveaction=None, execution_id=None,\n             if len(failed_routes) > 0:\n                 raise Exception('Failed notifications to routes: %s' % ', '.join(failed_routes))\n \n+    def _build_jinja_context(self, liveaction, execution):\n+        context = {SYSTEM_KV_PREFIX: KeyValueLookup()}\n+        context.update(liveaction.parameters)\n+        context.update({ACTION_CONTEXT_KV_PREFIX: liveaction.context})","path":"st2actions/st2actions/notifier/notifier.py","position":129,"original_position":129,"commit_id":"1aba185c3d5f325fcedd6ee25b7524efaa15e5d7","original_commit_id":"1aba185c3d5f325fcedd6ee25b7524efaa15e5d7","user":{"login":"manasdk","id":1776099,"avatar_url":"https://avatars.githubusercontent.com/u/1776099?v=3","gravatar_id":"","url":"https://api.github.com/users/manasdk","html_url":"https://github.com/manasdk","followers_url":"https://api.github.com/users/manasdk/followers","following_url":"https://api.github.com/users/manasdk/following{/other_user}","gists_url":"https://api.github.com/users/manasdk/gists{/gist_id}","starred_url":"https://api.github.com/users/manasdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manasdk/subscriptions","organizations_url":"https://api.github.com/users/manasdk/orgs","repos_url":"https://api.github.com/users/manasdk/repos","events_url":"https://api.github.com/users/manasdk/events{/privacy}","received_events_url":"https://api.github.com/users/manasdk/received_events","type":"User","site_admin":false},"body":"Hmm, the content of this value is opaque. I suspect it also depends on the source of the action etc.","created_at":"2015-11-12T00:06:30Z","updated_at":"2015-11-12T00:06:30Z","html_url":"https://github.com/StackStorm/st2/pull/2189#discussion_r44605940","pull_request_url":"https://api.github.com/repos/StackStorm/st2/pulls/2189","_links":{"self":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/comments/44605940"},"html":{"href":"https://github.com/StackStorm/st2/pull/2189#discussion_r44605940"},"pull_request":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/2189"}}},"pull_request":{"url":"https://api.github.com/repos/StackStorm/st2/pulls/2189","id":50267584,"html_url":"https://github.com/StackStorm/st2/pull/2189","diff_url":"https://github.com/StackStorm/st2/pull/2189.diff","patch_url":"https://github.com/StackStorm/st2/pull/2189.patch","issue_url":"https://api.github.com/repos/StackStorm/st2/issues/2189","number":2189,"state":"open","locked":false,"title":"Feedback: Jinja support for notifications","user":{"login":"lakshmi-kannan","id":1839421,"avatar_url":"https://avatars.githubusercontent.com/u/1839421?v=3","gravatar_id":"","url":"https://api.github.com/users/lakshmi-kannan","html_url":"https://github.com/lakshmi-kannan","followers_url":"https://api.github.com/users/lakshmi-kannan/followers","following_url":"https://api.github.com/users/lakshmi-kannan/following{/other_user}","gists_url":"https://api.github.com/users/lakshmi-kannan/gists{/gist_id}","starred_url":"https://api.github.com/users/lakshmi-kannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lakshmi-kannan/subscriptions","organizations_url":"https://api.github.com/users/lakshmi-kannan/orgs","repos_url":"https://api.github.com/users/lakshmi-kannan/repos","events_url":"https://api.github.com/users/lakshmi-kannan/events{/privacy}","received_events_url":"https://api.github.com/users/lakshmi-kannan/received_events","type":"User","site_admin":false},"body":"## What?\r\n\r\nThis PR adds Jinja support for message and data in notifications. \r\n\r\n## TODO\r\n\r\n* - [X] Examples\r\n* - [X] Docs\r\n* - [ ] Changelog","created_at":"2015-11-10T15:30:29Z","updated_at":"2015-11-12T00:06:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"58651e91b070d67b744bb32cc2d95e6056ca3927","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/StackStorm/st2/pulls/2189/commits","review_comments_url":"https://api.github.com/repos/StackStorm/st2/pulls/2189/comments","review_comment_url":"https://api.github.com/repos/StackStorm/st2/pulls/comments{/number}","comments_url":"https://api.github.com/repos/StackStorm/st2/issues/2189/comments","statuses_url":"https://api.github.com/repos/StackStorm/st2/statuses/1aba185c3d5f325fcedd6ee25b7524efaa15e5d7","head":{"label":"lakshmi-kannan:jinja_support_notifications","ref":"jinja_support_notifications","sha":"1aba185c3d5f325fcedd6ee25b7524efaa15e5d7","user":{"login":"lakshmi-kannan","id":1839421,"avatar_url":"https://avatars.githubusercontent.com/u/1839421?v=3","gravatar_id":"","url":"https://api.github.com/users/lakshmi-kannan","html_url":"https://github.com/lakshmi-kannan","followers_url":"https://api.github.com/users/lakshmi-kannan/followers","following_url":"https://api.github.com/users/lakshmi-kannan/following{/other_user}","gists_url":"https://api.github.com/users/lakshmi-kannan/gists{/gist_id}","starred_url":"https://api.github.com/users/lakshmi-kannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lakshmi-kannan/subscriptions","organizations_url":"https://api.github.com/users/lakshmi-kannan/orgs","repos_url":"https://api.github.com/users/lakshmi-kannan/repos","events_url":"https://api.github.com/users/lakshmi-kannan/events{/privacy}","received_events_url":"https://api.github.com/users/lakshmi-kannan/received_events","type":"User","site_admin":false},"repo":{"id":26183288,"name":"st2","full_name":"lakshmi-kannan/st2","owner":{"login":"lakshmi-kannan","id":1839421,"avatar_url":"https://avatars.githubusercontent.com/u/1839421?v=3","gravatar_id":"","url":"https://api.github.com/users/lakshmi-kannan","html_url":"https://github.com/lakshmi-kannan","followers_url":"https://api.github.com/users/lakshmi-kannan/followers","following_url":"https://api.github.com/users/lakshmi-kannan/following{/other_user}","gists_url":"https://api.github.com/users/lakshmi-kannan/gists{/gist_id}","starred_url":"https://api.github.com/users/lakshmi-kannan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lakshmi-kannan/subscriptions","organizations_url":"https://api.github.com/users/lakshmi-kannan/orgs","repos_url":"https://api.github.com/users/lakshmi-kannan/repos","events_url":"https://api.github.com/users/lakshmi-kannan/events{/privacy}","received_events_url":"https://api.github.com/users/lakshmi-kannan/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/lakshmi-kannan/st2","description":"Home of the StackStorm automation platform.","fork":true,"url":"https://api.github.com/repos/lakshmi-kannan/st2","forks_url":"https://api.github.com/repos/lakshmi-kannan/st2/forks","keys_url":"https://api.github.com/repos/lakshmi-kannan/st2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/lakshmi-kannan/st2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/lakshmi-kannan/st2/teams","hooks_url":"https://api.github.com/repos/lakshmi-kannan/st2/hooks","issue_events_url":"https://api.github.com/repos/lakshmi-kannan/st2/issues/events{/number}","events_url":"https://api.github.com/repos/lakshmi-kannan/st2/events","assignees_url":"https://api.github.com/repos/lakshmi-kannan/st2/assignees{/user}","branches_url":"https://api.github.com/repos/lakshmi-kannan/st2/branches{/branch}","tags_url":"https://api.github.com/repos/lakshmi-kannan/st2/tags","blobs_url":"https://api.github.com/repos/lakshmi-kannan/st2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/lakshmi-kannan/st2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/lakshmi-kannan/st2/git/refs{/sha}","trees_url":"https://api.github.com/repos/lakshmi-kannan/st2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/lakshmi-kannan/st2/statuses/{sha}","languages_url":"https://api.github.com/repos/lakshmi-kannan/st2/languages","stargazers_url":"https://api.github.com/repos/lakshmi-kannan/st2/stargazers","contributors_url":"https://api.github.com/repos/lakshmi-kannan/st2/contributors","subscribers_url":"https://api.github.com/repos/lakshmi-kannan/st2/subscribers","subscription_url":"https://api.github.com/repos/lakshmi-kannan/st2/subscription","commits_url":"https://api.github.com/repos/lakshmi-kannan/st2/commits{/sha}","git_commits_url":"https://api.github.com/repos/lakshmi-kannan/st2/git/commits{/sha}","comments_url":"https://api.github.com/repos/lakshmi-kannan/st2/comments{/number}","issue_comment_url":"https://api.github.com/repos/lakshmi-kannan/st2/issues/comments{/number}","contents_url":"https://api.github.com/repos/lakshmi-kannan/st2/contents/{+path}","compare_url":"https://api.github.com/repos/lakshmi-kannan/st2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/lakshmi-kannan/st2/merges","archive_url":"https://api.github.com/repos/lakshmi-kannan/st2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/lakshmi-kannan/st2/downloads","issues_url":"https://api.github.com/repos/lakshmi-kannan/st2/issues{/number}","pulls_url":"https://api.github.com/repos/lakshmi-kannan/st2/pulls{/number}","milestones_url":"https://api.github.com/repos/lakshmi-kannan/st2/milestones{/number}","notifications_url":"https://api.github.com/repos/lakshmi-kannan/st2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/lakshmi-kannan/st2/labels{/name}","releases_url":"https://api.github.com/repos/lakshmi-kannan/st2/releases{/id}","created_at":"2014-11-04T18:49:03Z","updated_at":"2015-02-13T05:59:12Z","pushed_at":"2015-11-11T11:04:41Z","git_url":"git://github.com/lakshmi-kannan/st2.git","ssh_url":"git@github.com:lakshmi-kannan/st2.git","clone_url":"https://github.com/lakshmi-kannan/st2.git","svn_url":"https://github.com/lakshmi-kannan/st2","homepage":"http://www.stackstorm.com/","size":12605,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"StackStorm:master","ref":"master","sha":"a450ca35089c98ef0569393e7ec3bedaccaa0d60","user":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"repo":{"id":19051806,"name":"st2","full_name":"StackStorm/st2","owner":{"login":"StackStorm","id":4969009,"avatar_url":"https://avatars.githubusercontent.com/u/4969009?v=3","gravatar_id":"","url":"https://api.github.com/users/StackStorm","html_url":"https://github.com/StackStorm","followers_url":"https://api.github.com/users/StackStorm/followers","following_url":"https://api.github.com/users/StackStorm/following{/other_user}","gists_url":"https://api.github.com/users/StackStorm/gists{/gist_id}","starred_url":"https://api.github.com/users/StackStorm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/StackStorm/subscriptions","organizations_url":"https://api.github.com/users/StackStorm/orgs","repos_url":"https://api.github.com/users/StackStorm/repos","events_url":"https://api.github.com/users/StackStorm/events{/privacy}","received_events_url":"https://api.github.com/users/StackStorm/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/StackStorm/st2","description":"StackStorm (aka \"IFTTT for Ops\") is event-driven automation commonly used for auto-remediation, security responses, facilitated troubleshooting, complex deployments, and more. Includes rules engine, workflow, 1500+ integrations, native ChatOps and so forth.  Zingy installer available at http://docs.stackstorm.com/install/index.html. Ping us on slack - https://stackstorm-community.slack.com/. ","fork":false,"url":"https://api.github.com/repos/StackStorm/st2","forks_url":"https://api.github.com/repos/StackStorm/st2/forks","keys_url":"https://api.github.com/repos/StackStorm/st2/keys{/key_id}","collaborators_url":"https://api.github.com/repos/StackStorm/st2/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/StackStorm/st2/teams","hooks_url":"https://api.github.com/repos/StackStorm/st2/hooks","issue_events_url":"https://api.github.com/repos/StackStorm/st2/issues/events{/number}","events_url":"https://api.github.com/repos/StackStorm/st2/events","assignees_url":"https://api.github.com/repos/StackStorm/st2/assignees{/user}","branches_url":"https://api.github.com/repos/StackStorm/st2/branches{/branch}","tags_url":"https://api.github.com/repos/StackStorm/st2/tags","blobs_url":"https://api.github.com/repos/StackStorm/st2/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/StackStorm/st2/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/StackStorm/st2/git/refs{/sha}","trees_url":"https://api.github.com/repos/StackStorm/st2/git/trees{/sha}","statuses_url":"https://api.github.com/repos/StackStorm/st2/statuses/{sha}","languages_url":"https://api.github.com/repos/StackStorm/st2/languages","stargazers_url":"https://api.github.com/repos/StackStorm/st2/stargazers","contributors_url":"https://api.github.com/repos/StackStorm/st2/contributors","subscribers_url":"https://api.github.com/repos/StackStorm/st2/subscribers","subscription_url":"https://api.github.com/repos/StackStorm/st2/subscription","commits_url":"https://api.github.com/repos/StackStorm/st2/commits{/sha}","git_commits_url":"https://api.github.com/repos/StackStorm/st2/git/commits{/sha}","comments_url":"https://api.github.com/repos/StackStorm/st2/comments{/number}","issue_comment_url":"https://api.github.com/repos/StackStorm/st2/issues/comments{/number}","contents_url":"https://api.github.com/repos/StackStorm/st2/contents/{+path}","compare_url":"https://api.github.com/repos/StackStorm/st2/compare/{base}...{head}","merges_url":"https://api.github.com/repos/StackStorm/st2/merges","archive_url":"https://api.github.com/repos/StackStorm/st2/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/StackStorm/st2/downloads","issues_url":"https://api.github.com/repos/StackStorm/st2/issues{/number}","pulls_url":"https://api.github.com/repos/StackStorm/st2/pulls{/number}","milestones_url":"https://api.github.com/repos/StackStorm/st2/milestones{/number}","notifications_url":"https://api.github.com/repos/StackStorm/st2/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/StackStorm/st2/labels{/name}","releases_url":"https://api.github.com/repos/StackStorm/st2/releases{/id}","created_at":"2014-04-23T00:51:34Z","updated_at":"2015-11-11T22:13:28Z","pushed_at":"2015-11-11T11:04:41Z","git_url":"git://github.com/StackStorm/st2.git","ssh_url":"git@github.com:StackStorm/st2.git","clone_url":"https://github.com/StackStorm/st2.git","svn_url":"https://github.com/StackStorm/st2","homepage":"http://www.stackstorm.com/","size":32985,"stargazers_count":1045,"watchers_count":1045,"language":"Python","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":87,"mirror_url":null,"open_issues_count":74,"forks":87,"open_issues":74,"watchers":1045,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/2189"},"html":{"href":"https://github.com/StackStorm/st2/pull/2189"},"issue":{"href":"https://api.github.com/repos/StackStorm/st2/issues/2189"},"comments":{"href":"https://api.github.com/repos/StackStorm/st2/issues/2189/comments"},"review_comments":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/2189/comments"},"review_comment":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/StackStorm/st2/pulls/2189/commits"},"statuses":{"href":"https://api.github.com/repos/StackStorm/st2/statuses/1aba185c3d5f325fcedd6ee25b7524efaa15e5d7"}}}}