{"action":"closed","issue":{"url":"https://api.github.com/repos/GluuFederation/oxTrust/issues/865","repository_url":"https://api.github.com/repos/GluuFederation/oxTrust","labels_url":"https://api.github.com/repos/GluuFederation/oxTrust/issues/865/labels{/name}","comments_url":"https://api.github.com/repos/GluuFederation/oxTrust/issues/865/comments","events_url":"https://api.github.com/repos/GluuFederation/oxTrust/issues/865/events","html_url":"https://github.com/GluuFederation/oxTrust/issues/865","id":300166778,"node_id":"MDU6SXNzdWUzMDAxNjY3Nzg=","number":865,"title":"Use JSON Logic GUI to display scope expression","user":{"login":"ldeveloperl1985","id":2329776,"node_id":"MDQ6VXNlcjIzMjk3NzY=","avatar_url":"https://avatars2.githubusercontent.com/u/2329776?v=4","gravatar_id":"","url":"https://api.github.com/users/ldeveloperl1985","html_url":"https://github.com/ldeveloperl1985","followers_url":"https://api.github.com/users/ldeveloperl1985/followers","following_url":"https://api.github.com/users/ldeveloperl1985/following{/other_user}","gists_url":"https://api.github.com/users/ldeveloperl1985/gists{/gist_id}","starred_url":"https://api.github.com/users/ldeveloperl1985/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ldeveloperl1985/subscriptions","organizations_url":"https://api.github.com/users/ldeveloperl1985/orgs","repos_url":"https://api.github.com/users/ldeveloperl1985/repos","events_url":"https://api.github.com/users/ldeveloperl1985/events{/privacy}","received_events_url":"https://api.github.com/users/ldeveloperl1985/received_events","type":"User","site_admin":false},"labels":[{"id":88928177,"node_id":"MDU6TGFiZWw4ODkyODE3Nw==","url":"https://api.github.com/repos/GluuFederation/oxTrust/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"closed","locked":false,"assignee":{"login":"shekhar16","id":15937500,"node_id":"MDQ6VXNlcjE1OTM3NTAw","avatar_url":"https://avatars0.githubusercontent.com/u/15937500?v=4","gravatar_id":"","url":"https://api.github.com/users/shekhar16","html_url":"https://github.com/shekhar16","followers_url":"https://api.github.com/users/shekhar16/followers","following_url":"https://api.github.com/users/shekhar16/following{/other_user}","gists_url":"https://api.github.com/users/shekhar16/gists{/gist_id}","starred_url":"https://api.github.com/users/shekhar16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shekhar16/subscriptions","organizations_url":"https://api.github.com/users/shekhar16/orgs","repos_url":"https://api.github.com/users/shekhar16/repos","events_url":"https://api.github.com/users/shekhar16/events{/privacy}","received_events_url":"https://api.github.com/users/shekhar16/received_events","type":"User","site_admin":false},"assignees":[{"login":"shekhar16","id":15937500,"node_id":"MDQ6VXNlcjE1OTM3NTAw","avatar_url":"https://avatars0.githubusercontent.com/u/15937500?v=4","gravatar_id":"","url":"https://api.github.com/users/shekhar16","html_url":"https://github.com/shekhar16","followers_url":"https://api.github.com/users/shekhar16/followers","following_url":"https://api.github.com/users/shekhar16/following{/other_user}","gists_url":"https://api.github.com/users/shekhar16/gists{/gist_id}","starred_url":"https://api.github.com/users/shekhar16/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shekhar16/subscriptions","organizations_url":"https://api.github.com/users/shekhar16/orgs","repos_url":"https://api.github.com/users/shekhar16/repos","events_url":"https://api.github.com/users/shekhar16/events{/privacy}","received_events_url":"https://api.github.com/users/shekhar16/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/GluuFederation/oxTrust/milestones/22","html_url":"https://github.com/GluuFederation/oxTrust/milestone/22","labels_url":"https://api.github.com/repos/GluuFederation/oxTrust/milestones/22/labels","id":3145420,"node_id":"MDk6TWlsZXN0b25lMzE0NTQyMA==","number":22,"title":"3.1.4","description":"","creator":{"login":"willow9886","id":5271048,"node_id":"MDQ6VXNlcjUyNzEwNDg=","avatar_url":"https://avatars0.githubusercontent.com/u/5271048?v=4","gravatar_id":"","url":"https://api.github.com/users/willow9886","html_url":"https://github.com/willow9886","followers_url":"https://api.github.com/users/willow9886/followers","following_url":"https://api.github.com/users/willow9886/following{/other_user}","gists_url":"https://api.github.com/users/willow9886/gists{/gist_id}","starred_url":"https://api.github.com/users/willow9886/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/willow9886/subscriptions","organizations_url":"https://api.github.com/users/willow9886/orgs","repos_url":"https://api.github.com/users/willow9886/repos","events_url":"https://api.github.com/users/willow9886/events{/privacy}","received_events_url":"https://api.github.com/users/willow9886/received_events","type":"User","site_admin":false},"open_issues":3,"closed_issues":192,"state":"open","created_at":"2018-02-26T21:49:55Z","updated_at":"2018-09-24T10:47:01Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2018-02-26T09:38:14Z","updated_at":"2018-09-24T10:47:01Z","closed_at":"2018-09-24T10:47:01Z","author_association":"NONE","body":"Currently scope expression display in row format. \r\n![umaissuerowimage](https://user-images.githubusercontent.com/2329776/36662575-cca66078-1b04-11e8-8dd0-52566b1ef2c7.png)\r\n\r\nDisplay this row format to GUI.\r\n\r\nExample:\r\n\r\n```\r\nrow JSON\r\n{  \r\n   \"rule\":{  \r\n      \"or\":[  \r\n         {  \r\n            \"var\":0\r\n         },\r\n         {  \r\n            \"var\":1\r\n         },\r\n         {  \r\n            \"and\":[  \r\n               {  \r\n                  \"var\":2\r\n               },\r\n               {  \r\n                  \"var\":3\r\n               }\r\n            ]\r\n         }\r\n      ]\r\n   },\r\n   \"data\":[  \r\n      \"https://test1.com\",\r\n      \"https://test2.com\",\r\n      \"https://test1.com\",\r\n      \"https://test3.com\"\r\n   ]\r\n}\r\n```\r\n\r\n```\r\nNote:\r\n1.     \"var\":0 --> \"https://test1.com\"\r\n        \"var\":1 --> \"https://test2.com\"\r\n         ...\r\n\r\n2. JSON rules can be nested at any level.\r\n```\r\n\r\nConvert below JSON to GUI.\r\n\r\n![umanewissue](https://user-images.githubusercontent.com/2329776/36662743-6a4dea6c-1b05-11e8-8c45-b1ff6a325bee.png)\r\n\r\nI've made this design in [Gluu-Gateway](https://github.com/GluuFederation/gluu-gateway) which is in angular JS framework. But you can use [JQuery-Builder](https://github.com/jeremywall/jQuery-QueryBuilder) library."}}
{"actor":{"display_login":"syntrydy"}}