{"action":"created","issue":{"url":"https://api.github.com/repos/crits/crits/issues/638","labels_url":"https://api.github.com/repos/crits/crits/issues/638/labels{/name}","comments_url":"https://api.github.com/repos/crits/crits/issues/638/comments","events_url":"https://api.github.com/repos/crits/crits/issues/638/events","html_url":"https://github.com/crits/crits/pull/638","id":114344506,"number":638,"title":"Add preferred list to Actions.","user":{"login":"wxsBSD","id":1394879,"avatar_url":"https://avatars.githubusercontent.com/u/1394879?v=3","gravatar_id":"","url":"https://api.github.com/users/wxsBSD","html_url":"https://github.com/wxsBSD","followers_url":"https://api.github.com/users/wxsBSD/followers","following_url":"https://api.github.com/users/wxsBSD/following{/other_user}","gists_url":"https://api.github.com/users/wxsBSD/gists{/gist_id}","starred_url":"https://api.github.com/users/wxsBSD/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wxsBSD/subscriptions","organizations_url":"https://api.github.com/users/wxsBSD/orgs","repos_url":"https://api.github.com/users/wxsBSD/repos","events_url":"https://api.github.com/users/wxsBSD/events{/privacy}","received_events_url":"https://api.github.com/users/wxsBSD/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-10-30T19:53:31Z","updated_at":"2015-11-12T17:59:17Z","closed_at":"2015-11-04T03:34:13Z","pull_request":{"url":"https://api.github.com/repos/crits/crits/pulls/638","html_url":"https://github.com/crits/crits/pull/638","diff_url":"https://github.com/crits/crits/pull/638.diff","patch_url":"https://github.com/crits/crits/pull/638.patch"},"body":"When creating a new IndicatorAction (this will be a misnomer in the\r\nfuture, more on that later) you can now select which TLOs this Action is\r\n\"preferred\" for. An action having \"preferred\" status means that from the\r\ndetails page or the listing page you can click a single button and all\r\nactions that are preferred for that TLO type will be applied.\r\n\r\nCurrently the only one that this matters for is Indicators, but the code\r\nhas been built so that when Actions become an attribute of all TLOs the\r\nsame interface can be used."},"comment":{"url":"https://api.github.com/repos/crits/crits/issues/comments/156184534","html_url":"https://github.com/crits/crits/pull/638#issuecomment-156184534","issue_url":"https://api.github.com/repos/crits/crits/issues/638","id":156184534,"user":{"login":"mgoffin","id":260873,"avatar_url":"https://avatars.githubusercontent.com/u/260873?v=3","gravatar_id":"","url":"https://api.github.com/users/mgoffin","html_url":"https://github.com/mgoffin","followers_url":"https://api.github.com/users/mgoffin/followers","following_url":"https://api.github.com/users/mgoffin/following{/other_user}","gists_url":"https://api.github.com/users/mgoffin/gists{/gist_id}","starred_url":"https://api.github.com/users/mgoffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgoffin/subscriptions","organizations_url":"https://api.github.com/users/mgoffin/orgs","repos_url":"https://api.github.com/users/mgoffin/repos","events_url":"https://api.github.com/users/mgoffin/events{/privacy}","received_events_url":"https://api.github.com/users/mgoffin/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T17:59:17Z","updated_at":"2015-11-12T17:59:17Z","body":"Because they are based only on TLO type, meaning the same Actions you would prefer for an IP Indicator are the same ones you'd prefer for an Email Address, which is really not the case at all.\r\n\r\nThe Preferred Actions need to be able to specify a list of dictionaries it prefers. Each dictionary containing and Object Type (Indicator, Sample, etc.), Field to look at, and Value to look for in that field."}}