{"action":"created","issue":{"url":"https://api.github.com/repos/mmajcica/DeploySsis/issues/9","repository_url":"https://api.github.com/repos/mmajcica/DeploySsis","labels_url":"https://api.github.com/repos/mmajcica/DeploySsis/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/mmajcica/DeploySsis/issues/9/comments","events_url":"https://api.github.com/repos/mmajcica/DeploySsis/issues/9/events","html_url":"https://github.com/mmajcica/DeploySsis/issues/9","id":382803684,"node_id":"MDU6SXNzdWUzODI4MDM2ODQ=","number":9,"title":"ReferenceOnProjects bug with json","user":{"login":"sam-bryant","id":36208119,"node_id":"MDQ6VXNlcjM2MjA4MTE5","avatar_url":"https://avatars3.githubusercontent.com/u/36208119?v=4","gravatar_id":"","url":"https://api.github.com/users/sam-bryant","html_url":"https://github.com/sam-bryant","followers_url":"https://api.github.com/users/sam-bryant/followers","following_url":"https://api.github.com/users/sam-bryant/following{/other_user}","gists_url":"https://api.github.com/users/sam-bryant/gists{/gist_id}","starred_url":"https://api.github.com/users/sam-bryant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sam-bryant/subscriptions","organizations_url":"https://api.github.com/users/sam-bryant/orgs","repos_url":"https://api.github.com/users/sam-bryant/repos","events_url":"https://api.github.com/users/sam-bryant/events{/privacy}","received_events_url":"https://api.github.com/users/sam-bryant/received_events","type":"User","site_admin":false},"labels":[{"id":801710095,"node_id":"MDU6TGFiZWw4MDE3MTAwOTU=","url":"https://api.github.com/repos/mmajcica/DeploySsis/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-20T18:56:48Z","updated_at":"2018-11-20T19:13:29Z","closed_at":null,"author_association":"NONE","body":"Hi Mario,\r\n\r\nFirst off, thanks for this project.  It saved me a lot of time.  \r\n\r\nI am using a json config file and there appears to be a bug when mapping the environment to the project.  I see the following in the Get-Config for an xml file:\r\n\r\n`ReferenceOnProjects = [Array]$environment.referenceOnProjects.project.name;`\r\n\r\nBut the json appears to be missing the .name portion.\r\n\r\n`ReferenceOnProjects = $environment.referenceOnProjects`\r\n\r\nThis is causing the error:\r\n\r\n> Unable to reference variables for environment 'Default' on '@{name=AnalyticTracking}'. Project not found!\r\n\r\nI was able to workaround this on my POC by changing my config from:\r\n\r\n`\"referenceOnProjects\": [\r\n    {\r\n      \"name\": \"AnalyticTracking\"\r\n    }\r\n  ]`\r\n\r\nto\r\n\r\n`\"referenceOnProjects\":  \"AnalyticTracking\"`\r\n\r\nLet me know if you have any questions.\r\nThanks,\r\nSam"},"comment":{"url":"https://api.github.com/repos/mmajcica/DeploySsis/issues/comments/440396073","html_url":"https://github.com/mmajcica/DeploySsis/issues/9#issuecomment-440396073","issue_url":"https://api.github.com/repos/mmajcica/DeploySsis/issues/9","id":440396073,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0MDM5NjA3Mw==","user":{"login":"mmajcica","id":3026551,"node_id":"MDQ6VXNlcjMwMjY1NTE=","avatar_url":"https://avatars3.githubusercontent.com/u/3026551?v=4","gravatar_id":"","url":"https://api.github.com/users/mmajcica","html_url":"https://github.com/mmajcica","followers_url":"https://api.github.com/users/mmajcica/followers","following_url":"https://api.github.com/users/mmajcica/following{/other_user}","gists_url":"https://api.github.com/users/mmajcica/gists{/gist_id}","starred_url":"https://api.github.com/users/mmajcica/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmajcica/subscriptions","organizations_url":"https://api.github.com/users/mmajcica/orgs","repos_url":"https://api.github.com/users/mmajcica/repos","events_url":"https://api.github.com/users/mmajcica/events{/privacy}","received_events_url":"https://api.github.com/users/mmajcica/received_events","type":"User","site_admin":false},"created_at":"2018-11-20T19:13:29Z","updated_at":"2018-11-20T19:13:29Z","author_association":"OWNER","body":"After checking the code, how about setting:\r\n`\"referenceOnProjects\": [ { \"name\": \"AnalyticTracking\" } ]`\r\nto\r\n`\"referenceOnProjects\": [ \"AnalyticTracking\" ]`\r\n\r\nIn this way, the JSON parser should return a string array and that is the expected object type.\r\nLet me know if this works, than I may update the documentation."}}
{"actor":{"display_login":"mmajcica"}}