{"action":"created","issue":{"url":"https://api.github.com/repos/FlatBallFlyer/IBM-Data-Merge-Utility/issues/24","labels_url":"https://api.github.com/repos/FlatBallFlyer/IBM-Data-Merge-Utility/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/FlatBallFlyer/IBM-Data-Merge-Utility/issues/24/comments","events_url":"https://api.github.com/repos/FlatBallFlyer/IBM-Data-Merge-Utility/issues/24/events","html_url":"https://github.com/FlatBallFlyer/IBM-Data-Merge-Utility/issues/24","id":95849964,"number":24,"title":"Backend API - Fetch template payload missing directive attributes","user":{"login":"ysriram","id":960400,"avatar_url":"https://avatars.githubusercontent.com/u/960400?v=3","gravatar_id":"","url":"https://api.github.com/users/ysriram","html_url":"https://github.com/ysriram","followers_url":"https://api.github.com/users/ysriram/followers","following_url":"https://api.github.com/users/ysriram/following{/other_user}","gists_url":"https://api.github.com/users/ysriram/gists{/gist_id}","starred_url":"https://api.github.com/users/ysriram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysriram/subscriptions","organizations_url":"https://api.github.com/users/ysriram/orgs","repos_url":"https://api.github.com/users/ysriram/repos","events_url":"https://api.github.com/users/ysriram/events{/privacy}","received_events_url":"https://api.github.com/users/ysriram/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/FlatBallFlyer/IBM-Data-Merge-Utility/labels/High%20Priority","name":"High Priority","color":"0052cc"}],"state":"open","locked":false,"assignee":{"login":"jonathanIBM","id":9683479,"avatar_url":"https://avatars.githubusercontent.com/u/9683479?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathanIBM","html_url":"https://github.com/jonathanIBM","followers_url":"https://api.github.com/users/jonathanIBM/followers","following_url":"https://api.github.com/users/jonathanIBM/following{/other_user}","gists_url":"https://api.github.com/users/jonathanIBM/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathanIBM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathanIBM/subscriptions","organizations_url":"https://api.github.com/users/jonathanIBM/orgs","repos_url":"https://api.github.com/users/jonathanIBM/repos","events_url":"https://api.github.com/users/jonathanIBM/events{/privacy}","received_events_url":"https://api.github.com/users/jonathanIBM/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-07-18T18:53:26Z","updated_at":"2015-07-18T19:41:25Z","closed_at":null,"body":"When fetching template the attributes of directives are missing. Example below.\r\n\r\n```\r\nGET http://127.0.0.1:9090/idmu/template/sitXml.situations./?_=1437245668842\r\n{\r\n    \"collection\": \"sitXml\",\r\n    \"columnValue\": \"\",\r\n    \"content\": \"<tkBookmark collection=\\\"sitXml\\\" name=\\\"situation\\\"/>\",\r\n    \"description\": \"Insert Situation with Profile Override\",\r\n    \"directives\": [\r\n        {   \r\n            \"description\": \"Insert Situations for Agent Type\",\r\n            \"provider\": {\r\n                \"type\": 1\r\n            },\r\n            \"sequence\": 0,\r\n            \"softFail\": false,\r\n            \"type\": 10\r\n        }\r\n    ],\r\n    \"name\": \"situations\",\r\n    \"outputFile\": \"\"\r\n}\r\n```\r\n\r\nExpected\r\n\r\n```\r\n{\r\n    \"collection\": \"sitXml\",\r\n    \"columnValue\": \"\",\r\n    \"content\": \"<tkBookmark collection=\\\"sitXml\\\" name=\\\"situation\\\"/>\",\r\n    \"description\": \"Insert Situation with Profile Override\",\r\n    \"directives\": [\r\n        {   \r\n            \"description\": \"Insert Situations for Agent Type\",\r\n            \"notLast\": [],\r\n            \"onlyLast\": [],\r\n            \"provider\": {\r\n                \"columns\": \"*\",\r\n                \"from\": \"ITM6_CONFIG\",\r\n                \"source\": \"tiaDB\",\r\n                \"type\": 1,\r\n                \"where\": \"SITNAME = '{SITNAME}' AND PROFILE IN ({PROFILES}) ORDER BY FIELD(PROFILE, {PROFILES}) DESC, CRITERIA LIMIT 1\"\r\n            },\r\n            \"softFail\": false,\r\n            \"type\": 10\r\n        }\r\n    ],\r\n    \"name\": \"situations\",\r\n    \"outputFile\": \"\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/FlatBallFlyer/IBM-Data-Merge-Utility/issues/comments/122587987","html_url":"https://github.com/FlatBallFlyer/IBM-Data-Merge-Utility/issues/24#issuecomment-122587987","issue_url":"https://api.github.com/repos/FlatBallFlyer/IBM-Data-Merge-Utility/issues/24","id":122587987,"user":{"login":"ysriram","id":960400,"avatar_url":"https://avatars.githubusercontent.com/u/960400?v=3","gravatar_id":"","url":"https://api.github.com/users/ysriram","html_url":"https://github.com/ysriram","followers_url":"https://api.github.com/users/ysriram/followers","following_url":"https://api.github.com/users/ysriram/following{/other_user}","gists_url":"https://api.github.com/users/ysriram/gists{/gist_id}","starred_url":"https://api.github.com/users/ysriram/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ysriram/subscriptions","organizations_url":"https://api.github.com/users/ysriram/orgs","repos_url":"https://api.github.com/users/ysriram/repos","events_url":"https://api.github.com/users/ysriram/events{/privacy}","received_events_url":"https://api.github.com/users/ysriram/received_events","type":"User","site_admin":false},"created_at":"2015-07-18T19:41:25Z","updated_at":"2015-07-18T19:41:25Z","body":"the issue is not the editor. it does handle it. see the difference in gist inside the bug report. \n\nSent from my iPhone\n\n> On Jul 18, 2015, at 3:39 PM, Mike Storey <notifications@github.com> wrote:\n> \n> Missing values should be assumed Empty including the onlyLast and notLast Lists.\n> IMO this should be handled by the editor.\n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n"}}