{"action":"created","comment":{"url":"https://api.github.com/repos/wso2/product-is/pulls/comments/49161485","id":49161485,"diff_hunk":"@@ -110,36 +110,49 @@ function drawTablepage(json, engineValue) {\n     var middle = \"\";\n \n     var obj = JSON.parse(json);\n-    //\n-    for (var i = 0; i < obj.taskSimpleQueryResultSet.row.length; i++) {\n-        var entry = obj.taskSimpleQueryResultSet.row[i];\n-        if (listOptions == \"ALL_TASKS\" || listOptions == entry.status || (listOptions == \"DEFAULT\" && (entry.status == \"READY\" || entry.status == \"IN_PROGRESS\" || entry.status == \"RESERVED\"))) {\n-\n-            middle = middle +\n-                \"                <tr>\\n\" +\n-                \"                    <td><input type='button' id='\" + entry.id + \"' class=\\\"btn btn-info\\\" onclick='table_button_click(\\\"\" + entry.id + \"\\\",\\\"\" + entry.status + \"\\\")' value='\" + entry.id + \"'/></td>\" +\n-                \"                    <td>\" + entry.presentationSubject + \"</td>\" +\n-                \"                    <td>\" + entry.status + \"</td>\" +\n-                \"                    <td>\" + entry.priority + \"</td>\" +\n-                \"                    <td>\" + entry.createdTime + \"</td>\" +\n-                \"                </tr>\\n\";\n-        }\n+    var hasRows = 0;\n+    if (obj.taskSimpleQueryResultSet.row != undefined) {\n+        for (var i = 0; i < obj.taskSimpleQueryResultSet.row.length; i++) {\n+            var entry = obj.taskSimpleQueryResultSet.row[i];\n+            if (listOptions == \"ALL_TASKS\" || listOptions == entry.status || (listOptions == \"DEFAULT\" && (entry.status == \"READY\" || entry.status == \"IN_PROGRESS\" || entry.status == \"RESERVED\"))) {","path":"modules/jaggery-apps/portal/gadgets/approvals/js/gadget.js","position":22,"original_position":22,"commit_id":"d48e504618eba03c11907e4572dbbfe793b70c9d","original_commit_id":"d48e504618eba03c11907e4572dbbfe793b70c9d","user":{"login":"cdwijayarathna","id":1338607,"avatar_url":"https://avatars.githubusercontent.com/u/1338607?v=3","gravatar_id":"","url":"https://api.github.com/users/cdwijayarathna","html_url":"https://github.com/cdwijayarathna","followers_url":"https://api.github.com/users/cdwijayarathna/followers","following_url":"https://api.github.com/users/cdwijayarathna/following{/other_user}","gists_url":"https://api.github.com/users/cdwijayarathna/gists{/gist_id}","starred_url":"https://api.github.com/users/cdwijayarathna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdwijayarathna/subscriptions","organizations_url":"https://api.github.com/users/cdwijayarathna/orgs","repos_url":"https://api.github.com/users/cdwijayarathna/repos","events_url":"https://api.github.com/users/cdwijayarathna/events{/privacy}","received_events_url":"https://api.github.com/users/cdwijayarathna/received_events","type":"User","site_admin":false},"body":"Fixed with https://github.com/wso2/product-is/pull/400","created_at":"2016-01-08T06:24:34Z","updated_at":"2016-01-08T06:24:34Z","html_url":"https://github.com/wso2/product-is/pull/200#discussion_r49161485","pull_request_url":"https://api.github.com/repos/wso2/product-is/pulls/200","_links":{"self":{"href":"https://api.github.com/repos/wso2/product-is/pulls/comments/49161485"},"html":{"href":"https://github.com/wso2/product-is/pull/200#discussion_r49161485"},"pull_request":{"href":"https://api.github.com/repos/wso2/product-is/pulls/200"}}},"pull_request":{"url":"https://api.github.com/repos/wso2/product-is/pulls/200","id":44090515,"html_url":"https://github.com/wso2/product-is/pull/200","diff_url":"https://github.com/wso2/product-is/pull/200.diff","patch_url":"https://github.com/wso2/product-is/pull/200.patch","issue_url":"https://api.github.com/repos/wso2/product-is/issues/200","number":200,"state":"closed","locked":false,"title":"IDENTITY-3367 Create IS dashboard gadget for workflow feature - ui improvements","user":{"login":"cdwijayarathna","id":1338607,"avatar_url":"https://avatars.githubusercontent.com/u/1338607?v=3","gravatar_id":"","url":"https://api.github.com/users/cdwijayarathna","html_url":"https://github.com/cdwijayarathna","followers_url":"https://api.github.com/users/cdwijayarathna/followers","following_url":"https://api.github.com/users/cdwijayarathna/following{/other_user}","gists_url":"https://api.github.com/users/cdwijayarathna/gists{/gist_id}","starred_url":"https://api.github.com/users/cdwijayarathna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdwijayarathna/subscriptions","organizations_url":"https://api.github.com/users/cdwijayarathna/orgs","repos_url":"https://api.github.com/users/cdwijayarathna/repos","events_url":"https://api.github.com/users/cdwijayarathna/events{/privacy}","received_events_url":"https://api.github.com/users/cdwijayarathna/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-03T10:23:52Z","updated_at":"2016-01-08T06:24:34Z","closed_at":"2015-09-03T12:03:32Z","merged_at":"2015-09-03T12:03:32Z","merge_commit_sha":"02946e45c737cf2288b0ff534e3f1961d95cd1e6","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/wso2/product-is/pulls/200/commits","review_comments_url":"https://api.github.com/repos/wso2/product-is/pulls/200/comments","review_comment_url":"https://api.github.com/repos/wso2/product-is/pulls/comments{/number}","comments_url":"https://api.github.com/repos/wso2/product-is/issues/200/comments","statuses_url":"https://api.github.com/repos/wso2/product-is/statuses/d48e504618eba03c11907e4572dbbfe793b70c9d","head":{"label":"cdwijayarathna:IDENTITY-3367-5","ref":"IDENTITY-3367-5","sha":"d48e504618eba03c11907e4572dbbfe793b70c9d","user":{"login":"cdwijayarathna","id":1338607,"avatar_url":"https://avatars.githubusercontent.com/u/1338607?v=3","gravatar_id":"","url":"https://api.github.com/users/cdwijayarathna","html_url":"https://github.com/cdwijayarathna","followers_url":"https://api.github.com/users/cdwijayarathna/followers","following_url":"https://api.github.com/users/cdwijayarathna/following{/other_user}","gists_url":"https://api.github.com/users/cdwijayarathna/gists{/gist_id}","starred_url":"https://api.github.com/users/cdwijayarathna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdwijayarathna/subscriptions","organizations_url":"https://api.github.com/users/cdwijayarathna/orgs","repos_url":"https://api.github.com/users/cdwijayarathna/repos","events_url":"https://api.github.com/users/cdwijayarathna/events{/privacy}","received_events_url":"https://api.github.com/users/cdwijayarathna/received_events","type":"User","site_admin":false},"repo":{"id":37584757,"name":"product-is","full_name":"cdwijayarathna/product-is","owner":{"login":"cdwijayarathna","id":1338607,"avatar_url":"https://avatars.githubusercontent.com/u/1338607?v=3","gravatar_id":"","url":"https://api.github.com/users/cdwijayarathna","html_url":"https://github.com/cdwijayarathna","followers_url":"https://api.github.com/users/cdwijayarathna/followers","following_url":"https://api.github.com/users/cdwijayarathna/following{/other_user}","gists_url":"https://api.github.com/users/cdwijayarathna/gists{/gist_id}","starred_url":"https://api.github.com/users/cdwijayarathna/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cdwijayarathna/subscriptions","organizations_url":"https://api.github.com/users/cdwijayarathna/orgs","repos_url":"https://api.github.com/users/cdwijayarathna/repos","events_url":"https://api.github.com/users/cdwijayarathna/events{/privacy}","received_events_url":"https://api.github.com/users/cdwijayarathna/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/cdwijayarathna/product-is","description":"","fork":true,"url":"https://api.github.com/repos/cdwijayarathna/product-is","forks_url":"https://api.github.com/repos/cdwijayarathna/product-is/forks","keys_url":"https://api.github.com/repos/cdwijayarathna/product-is/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cdwijayarathna/product-is/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cdwijayarathna/product-is/teams","hooks_url":"https://api.github.com/repos/cdwijayarathna/product-is/hooks","issue_events_url":"https://api.github.com/repos/cdwijayarathna/product-is/issues/events{/number}","events_url":"https://api.github.com/repos/cdwijayarathna/product-is/events","assignees_url":"https://api.github.com/repos/cdwijayarathna/product-is/assignees{/user}","branches_url":"https://api.github.com/repos/cdwijayarathna/product-is/branches{/branch}","tags_url":"https://api.github.com/repos/cdwijayarathna/product-is/tags","blobs_url":"https://api.github.com/repos/cdwijayarathna/product-is/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cdwijayarathna/product-is/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cdwijayarathna/product-is/git/refs{/sha}","trees_url":"https://api.github.com/repos/cdwijayarathna/product-is/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cdwijayarathna/product-is/statuses/{sha}","languages_url":"https://api.github.com/repos/cdwijayarathna/product-is/languages","stargazers_url":"https://api.github.com/repos/cdwijayarathna/product-is/stargazers","contributors_url":"https://api.github.com/repos/cdwijayarathna/product-is/contributors","subscribers_url":"https://api.github.com/repos/cdwijayarathna/product-is/subscribers","subscription_url":"https://api.github.com/repos/cdwijayarathna/product-is/subscription","commits_url":"https://api.github.com/repos/cdwijayarathna/product-is/commits{/sha}","git_commits_url":"https://api.github.com/repos/cdwijayarathna/product-is/git/commits{/sha}","comments_url":"https://api.github.com/repos/cdwijayarathna/product-is/comments{/number}","issue_comment_url":"https://api.github.com/repos/cdwijayarathna/product-is/issues/comments{/number}","contents_url":"https://api.github.com/repos/cdwijayarathna/product-is/contents/{+path}","compare_url":"https://api.github.com/repos/cdwijayarathna/product-is/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cdwijayarathna/product-is/merges","archive_url":"https://api.github.com/repos/cdwijayarathna/product-is/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cdwijayarathna/product-is/downloads","issues_url":"https://api.github.com/repos/cdwijayarathna/product-is/issues{/number}","pulls_url":"https://api.github.com/repos/cdwijayarathna/product-is/pulls{/number}","milestones_url":"https://api.github.com/repos/cdwijayarathna/product-is/milestones{/number}","notifications_url":"https://api.github.com/repos/cdwijayarathna/product-is/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cdwijayarathna/product-is/labels{/name}","releases_url":"https://api.github.com/repos/cdwijayarathna/product-is/releases{/id}","created_at":"2015-06-17T09:09:41Z","updated_at":"2015-06-17T09:09:46Z","pushed_at":"2016-01-08T06:24:16Z","git_url":"git://github.com/cdwijayarathna/product-is.git","ssh_url":"git@github.com:cdwijayarathna/product-is.git","clone_url":"https://github.com/cdwijayarathna/product-is.git","svn_url":"https://github.com/cdwijayarathna/product-is","homepage":null,"size":79755,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"wso2:master","ref":"master","sha":"436bb1223b4bb6aa04dd0206f91a89ca104350c9","user":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"repo":{"id":18987413,"name":"product-is","full_name":"wso2/product-is","owner":{"login":"wso2","id":533043,"avatar_url":"https://avatars.githubusercontent.com/u/533043?v=3","gravatar_id":"","url":"https://api.github.com/users/wso2","html_url":"https://github.com/wso2","followers_url":"https://api.github.com/users/wso2/followers","following_url":"https://api.github.com/users/wso2/following{/other_user}","gists_url":"https://api.github.com/users/wso2/gists{/gist_id}","starred_url":"https://api.github.com/users/wso2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wso2/subscriptions","organizations_url":"https://api.github.com/users/wso2/orgs","repos_url":"https://api.github.com/users/wso2/repos","events_url":"https://api.github.com/users/wso2/events{/privacy}","received_events_url":"https://api.github.com/users/wso2/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/wso2/product-is","description":"","fork":false,"url":"https://api.github.com/repos/wso2/product-is","forks_url":"https://api.github.com/repos/wso2/product-is/forks","keys_url":"https://api.github.com/repos/wso2/product-is/keys{/key_id}","collaborators_url":"https://api.github.com/repos/wso2/product-is/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/wso2/product-is/teams","hooks_url":"https://api.github.com/repos/wso2/product-is/hooks","issue_events_url":"https://api.github.com/repos/wso2/product-is/issues/events{/number}","events_url":"https://api.github.com/repos/wso2/product-is/events","assignees_url":"https://api.github.com/repos/wso2/product-is/assignees{/user}","branches_url":"https://api.github.com/repos/wso2/product-is/branches{/branch}","tags_url":"https://api.github.com/repos/wso2/product-is/tags","blobs_url":"https://api.github.com/repos/wso2/product-is/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/wso2/product-is/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/wso2/product-is/git/refs{/sha}","trees_url":"https://api.github.com/repos/wso2/product-is/git/trees{/sha}","statuses_url":"https://api.github.com/repos/wso2/product-is/statuses/{sha}","languages_url":"https://api.github.com/repos/wso2/product-is/languages","stargazers_url":"https://api.github.com/repos/wso2/product-is/stargazers","contributors_url":"https://api.github.com/repos/wso2/product-is/contributors","subscribers_url":"https://api.github.com/repos/wso2/product-is/subscribers","subscription_url":"https://api.github.com/repos/wso2/product-is/subscription","commits_url":"https://api.github.com/repos/wso2/product-is/commits{/sha}","git_commits_url":"https://api.github.com/repos/wso2/product-is/git/commits{/sha}","comments_url":"https://api.github.com/repos/wso2/product-is/comments{/number}","issue_comment_url":"https://api.github.com/repos/wso2/product-is/issues/comments{/number}","contents_url":"https://api.github.com/repos/wso2/product-is/contents/{+path}","compare_url":"https://api.github.com/repos/wso2/product-is/compare/{base}...{head}","merges_url":"https://api.github.com/repos/wso2/product-is/merges","archive_url":"https://api.github.com/repos/wso2/product-is/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/wso2/product-is/downloads","issues_url":"https://api.github.com/repos/wso2/product-is/issues{/number}","pulls_url":"https://api.github.com/repos/wso2/product-is/pulls{/number}","milestones_url":"https://api.github.com/repos/wso2/product-is/milestones{/number}","notifications_url":"https://api.github.com/repos/wso2/product-is/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/wso2/product-is/labels{/name}","releases_url":"https://api.github.com/repos/wso2/product-is/releases{/id}","created_at":"2014-04-21T08:55:36Z","updated_at":"2015-12-20T11:16:40Z","pushed_at":"2016-01-08T06:24:17Z","git_url":"git://github.com/wso2/product-is.git","ssh_url":"git@github.com:wso2/product-is.git","clone_url":"https://github.com/wso2/product-is.git","svn_url":"https://github.com/wso2/product-is","homepage":null,"size":80880,"stargazers_count":7,"watchers_count":7,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":81,"mirror_url":null,"open_issues_count":14,"forks":81,"open_issues":14,"watchers":7,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/wso2/product-is/pulls/200"},"html":{"href":"https://github.com/wso2/product-is/pull/200"},"issue":{"href":"https://api.github.com/repos/wso2/product-is/issues/200"},"comments":{"href":"https://api.github.com/repos/wso2/product-is/issues/200/comments"},"review_comments":{"href":"https://api.github.com/repos/wso2/product-is/pulls/200/comments"},"review_comment":{"href":"https://api.github.com/repos/wso2/product-is/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/wso2/product-is/pulls/200/commits"},"statuses":{"href":"https://api.github.com/repos/wso2/product-is/statuses/d48e504618eba03c11907e4572dbbfe793b70c9d"}}}}