{"action":"closed","number":6140,"pull_request":{"url":"https://api.github.com/repos/opf/openproject/pulls/6140","id":163936605,"html_url":"https://github.com/opf/openproject/pull/6140","diff_url":"https://github.com/opf/openproject/pull/6140.diff","patch_url":"https://github.com/opf/openproject/pull/6140.patch","issue_url":"https://api.github.com/repos/opf/openproject/issues/6140","number":6140,"state":"closed","locked":false,"title":"custom action buttons","user":{"login":"ulferts","id":617519,"avatar_url":"https://avatars1.githubusercontent.com/u/617519?v=4","gravatar_id":"","url":"https://api.github.com/users/ulferts","html_url":"https://github.com/ulferts","followers_url":"https://api.github.com/users/ulferts/followers","following_url":"https://api.github.com/users/ulferts/following{/other_user}","gists_url":"https://api.github.com/users/ulferts/gists{/gist_id}","starred_url":"https://api.github.com/users/ulferts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ulferts/subscriptions","organizations_url":"https://api.github.com/users/ulferts/orgs","repos_url":"https://api.github.com/users/ulferts/repos","events_url":"https://api.github.com/users/ulferts/events{/privacy}","received_events_url":"https://api.github.com/users/ulferts/received_events","type":"User","site_admin":false},"body":"Add workflow buttons to wp show and fullscreen\r\n\r\n![image](https://user-images.githubusercontent.com/617519/35146996-3b28c862-fd0d-11e7-9fc0-a7ac96543bd5.png)\r\n\r\nCustom actions can be administrated (CRUD) where the name as well as the actions are configurable\r\n\r\nEpic on community:\r\nhttps://community.openproject.com/projects/openproject/work_packages/26612\r\nFeatures:\r\nhttps://community.openproject.com/projects/openproject/work_packages/26940/activity\r\nhttps://community.openproject.com/projects/openproject/work_packages/26938/activity\r\nhttps://community.openproject.com/projects/openproject/work_packages/26935/activity\r\nhttps://community.openproject.com/projects/openproject/work_packages/26937/activity\r\nhttps://community.openproject.com/projects/openproject/work_packages/26934/activity\r\n\r\n### TODO:\r\n\r\n- [x] Implement additional actions\r\n  - [x] Assignee\r\n  - [x] Status\r\n  - [x] Priority\r\n  - [x] Responsible\r\n  - [x] Custom Fields (Date, Float, Integer, Text, String, Boolean, List, Version, User)\r\n    - [x] Multi select\r\n    - [x] Fix bug of not having a date picker for date fields\r\n- [x] Validations on actions \r\n- [x] Add conditions to the actions\r\n  - [x] Type\r\n  - [x] Project\r\n  - [x] Role\r\n  - [x] Status\r\n- [x] Documentation\r\n  - [x] WP Representer changes\r\n  - [x] Custom actions api\r\n- [x] Cache links in representer\r\n- [x] Cleanup angular code (Maybe everything can be encapsulated into its own module)\r\n- [x] Turn into enterprise feature\r\n\r\n### TODO (but in different PR):\r\n\r\nCovered by:\r\nhttps://community.openproject.com/projects/openproject/work_packages/27118\r\n\r\n- Implement additional actions\r\n  - Start date\r\n  - Due date\r\n  - Date\r\n    - ~~How to differentiate between the three (Start date/Due date/Date) and prevent the user from making invalid input~~ We don't. We simply do not apply invalid actions.\r\n  -  ~~Category~~ Too project specific\r\n  - Version\r\n  - Done ratio\r\n  - Estimated hours\r\n  - Notifications\r\n  - Plugins:\r\n    - Budgets\r\n    - Remaining hours \r\n    - Story points\r\n- Design administration\r\n- No mechanism is implemented as of now on how to handle lacking space to display the buttons (e.g. on split screen or smaller screens):\r\n\r\n![image](https://user-images.githubusercontent.com/617519/35147030-5be60a1a-fd0d-11e7-9039-b2a3dfa9db07.png)\r\n\r\n\r\n","created_at":"2018-01-19T10:39:21Z","updated_at":"2018-02-12T07:01:17Z","closed_at":"2018-02-12T07:01:17Z","merged_at":"2018-02-12T07:01:17Z","merge_commit_sha":"b6ba08f2845313c15ec15e6f7811cafb440462a1","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/opf/openproject/pulls/6140/commits","review_comments_url":"https://api.github.com/repos/opf/openproject/pulls/6140/comments","review_comment_url":"https://api.github.com/repos/opf/openproject/pulls/comments{/number}","comments_url":"https://api.github.com/repos/opf/openproject/issues/6140/comments","statuses_url":"https://api.github.com/repos/opf/openproject/statuses/7bba51bd44fff4f7159febd6bb880cf29b0a3801","head":{"label":"opf:feature/workflow_buttons","ref":"feature/workflow_buttons","sha":"7bba51bd44fff4f7159febd6bb880cf29b0a3801","user":{"login":"opf","id":1756674,"avatar_url":"https://avatars0.githubusercontent.com/u/1756674?v=4","gravatar_id":"","url":"https://api.github.com/users/opf","html_url":"https://github.com/opf","followers_url":"https://api.github.com/users/opf/followers","following_url":"https://api.github.com/users/opf/following{/other_user}","gists_url":"https://api.github.com/users/opf/gists{/gist_id}","starred_url":"https://api.github.com/users/opf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opf/subscriptions","organizations_url":"https://api.github.com/users/opf/orgs","repos_url":"https://api.github.com/users/opf/repos","events_url":"https://api.github.com/users/opf/events{/privacy}","received_events_url":"https://api.github.com/users/opf/received_events","type":"Organization","site_admin":false},"repo":{"id":6899875,"name":"openproject","full_name":"opf/openproject","owner":{"login":"opf","id":1756674,"avatar_url":"https://avatars0.githubusercontent.com/u/1756674?v=4","gravatar_id":"","url":"https://api.github.com/users/opf","html_url":"https://github.com/opf","followers_url":"https://api.github.com/users/opf/followers","following_url":"https://api.github.com/users/opf/following{/other_user}","gists_url":"https://api.github.com/users/opf/gists{/gist_id}","starred_url":"https://api.github.com/users/opf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opf/subscriptions","organizations_url":"https://api.github.com/users/opf/orgs","repos_url":"https://api.github.com/users/opf/repos","events_url":"https://api.github.com/users/opf/events{/privacy}","received_events_url":"https://api.github.com/users/opf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opf/openproject","description":"OpenProject is the leading open source project management software.","fork":false,"url":"https://api.github.com/repos/opf/openproject","forks_url":"https://api.github.com/repos/opf/openproject/forks","keys_url":"https://api.github.com/repos/opf/openproject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opf/openproject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opf/openproject/teams","hooks_url":"https://api.github.com/repos/opf/openproject/hooks","issue_events_url":"https://api.github.com/repos/opf/openproject/issues/events{/number}","events_url":"https://api.github.com/repos/opf/openproject/events","assignees_url":"https://api.github.com/repos/opf/openproject/assignees{/user}","branches_url":"https://api.github.com/repos/opf/openproject/branches{/branch}","tags_url":"https://api.github.com/repos/opf/openproject/tags","blobs_url":"https://api.github.com/repos/opf/openproject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opf/openproject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opf/openproject/git/refs{/sha}","trees_url":"https://api.github.com/repos/opf/openproject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opf/openproject/statuses/{sha}","languages_url":"https://api.github.com/repos/opf/openproject/languages","stargazers_url":"https://api.github.com/repos/opf/openproject/stargazers","contributors_url":"https://api.github.com/repos/opf/openproject/contributors","subscribers_url":"https://api.github.com/repos/opf/openproject/subscribers","subscription_url":"https://api.github.com/repos/opf/openproject/subscription","commits_url":"https://api.github.com/repos/opf/openproject/commits{/sha}","git_commits_url":"https://api.github.com/repos/opf/openproject/git/commits{/sha}","comments_url":"https://api.github.com/repos/opf/openproject/comments{/number}","issue_comment_url":"https://api.github.com/repos/opf/openproject/issues/comments{/number}","contents_url":"https://api.github.com/repos/opf/openproject/contents/{+path}","compare_url":"https://api.github.com/repos/opf/openproject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opf/openproject/merges","archive_url":"https://api.github.com/repos/opf/openproject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opf/openproject/downloads","issues_url":"https://api.github.com/repos/opf/openproject/issues{/number}","pulls_url":"https://api.github.com/repos/opf/openproject/pulls{/number}","milestones_url":"https://api.github.com/repos/opf/openproject/milestones{/number}","notifications_url":"https://api.github.com/repos/opf/openproject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opf/openproject/labels{/name}","releases_url":"https://api.github.com/repos/opf/openproject/releases{/id}","deployments_url":"https://api.github.com/repos/opf/openproject/deployments","created_at":"2012-11-28T09:59:11Z","updated_at":"2018-02-08T17:27:24Z","pushed_at":"2018-02-12T07:01:17Z","git_url":"git://github.com/opf/openproject.git","ssh_url":"git@github.com:opf/openproject.git","clone_url":"https://github.com/opf/openproject.git","svn_url":"https://github.com/opf/openproject","homepage":"https://www.openproject.org","size":99594,"stargazers_count":1821,"watchers_count":1821,"language":"Ruby","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":631,"mirror_url":null,"archived":false,"open_issues_count":14,"license":null,"forks":631,"open_issues":14,"watchers":1821,"default_branch":"dev"}},"base":{"label":"opf:dev","ref":"dev","sha":"8fe9a81387a86d14d8196bf0e7be2cb820b3fcc5","user":{"login":"opf","id":1756674,"avatar_url":"https://avatars0.githubusercontent.com/u/1756674?v=4","gravatar_id":"","url":"https://api.github.com/users/opf","html_url":"https://github.com/opf","followers_url":"https://api.github.com/users/opf/followers","following_url":"https://api.github.com/users/opf/following{/other_user}","gists_url":"https://api.github.com/users/opf/gists{/gist_id}","starred_url":"https://api.github.com/users/opf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opf/subscriptions","organizations_url":"https://api.github.com/users/opf/orgs","repos_url":"https://api.github.com/users/opf/repos","events_url":"https://api.github.com/users/opf/events{/privacy}","received_events_url":"https://api.github.com/users/opf/received_events","type":"Organization","site_admin":false},"repo":{"id":6899875,"name":"openproject","full_name":"opf/openproject","owner":{"login":"opf","id":1756674,"avatar_url":"https://avatars0.githubusercontent.com/u/1756674?v=4","gravatar_id":"","url":"https://api.github.com/users/opf","html_url":"https://github.com/opf","followers_url":"https://api.github.com/users/opf/followers","following_url":"https://api.github.com/users/opf/following{/other_user}","gists_url":"https://api.github.com/users/opf/gists{/gist_id}","starred_url":"https://api.github.com/users/opf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/opf/subscriptions","organizations_url":"https://api.github.com/users/opf/orgs","repos_url":"https://api.github.com/users/opf/repos","events_url":"https://api.github.com/users/opf/events{/privacy}","received_events_url":"https://api.github.com/users/opf/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/opf/openproject","description":"OpenProject is the leading open source project management software.","fork":false,"url":"https://api.github.com/repos/opf/openproject","forks_url":"https://api.github.com/repos/opf/openproject/forks","keys_url":"https://api.github.com/repos/opf/openproject/keys{/key_id}","collaborators_url":"https://api.github.com/repos/opf/openproject/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/opf/openproject/teams","hooks_url":"https://api.github.com/repos/opf/openproject/hooks","issue_events_url":"https://api.github.com/repos/opf/openproject/issues/events{/number}","events_url":"https://api.github.com/repos/opf/openproject/events","assignees_url":"https://api.github.com/repos/opf/openproject/assignees{/user}","branches_url":"https://api.github.com/repos/opf/openproject/branches{/branch}","tags_url":"https://api.github.com/repos/opf/openproject/tags","blobs_url":"https://api.github.com/repos/opf/openproject/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/opf/openproject/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/opf/openproject/git/refs{/sha}","trees_url":"https://api.github.com/repos/opf/openproject/git/trees{/sha}","statuses_url":"https://api.github.com/repos/opf/openproject/statuses/{sha}","languages_url":"https://api.github.com/repos/opf/openproject/languages","stargazers_url":"https://api.github.com/repos/opf/openproject/stargazers","contributors_url":"https://api.github.com/repos/opf/openproject/contributors","subscribers_url":"https://api.github.com/repos/opf/openproject/subscribers","subscription_url":"https://api.github.com/repos/opf/openproject/subscription","commits_url":"https://api.github.com/repos/opf/openproject/commits{/sha}","git_commits_url":"https://api.github.com/repos/opf/openproject/git/commits{/sha}","comments_url":"https://api.github.com/repos/opf/openproject/comments{/number}","issue_comment_url":"https://api.github.com/repos/opf/openproject/issues/comments{/number}","contents_url":"https://api.github.com/repos/opf/openproject/contents/{+path}","compare_url":"https://api.github.com/repos/opf/openproject/compare/{base}...{head}","merges_url":"https://api.github.com/repos/opf/openproject/merges","archive_url":"https://api.github.com/repos/opf/openproject/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/opf/openproject/downloads","issues_url":"https://api.github.com/repos/opf/openproject/issues{/number}","pulls_url":"https://api.github.com/repos/opf/openproject/pulls{/number}","milestones_url":"https://api.github.com/repos/opf/openproject/milestones{/number}","notifications_url":"https://api.github.com/repos/opf/openproject/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/opf/openproject/labels{/name}","releases_url":"https://api.github.com/repos/opf/openproject/releases{/id}","deployments_url":"https://api.github.com/repos/opf/openproject/deployments","created_at":"2012-11-28T09:59:11Z","updated_at":"2018-02-08T17:27:24Z","pushed_at":"2018-02-12T07:01:17Z","git_url":"git://github.com/opf/openproject.git","ssh_url":"git@github.com:opf/openproject.git","clone_url":"https://github.com/opf/openproject.git","svn_url":"https://github.com/opf/openproject","homepage":"https://www.openproject.org","size":99594,"stargazers_count":1821,"watchers_count":1821,"language":"Ruby","has_issues":false,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":631,"mirror_url":null,"archived":false,"open_issues_count":14,"license":null,"forks":631,"open_issues":14,"watchers":1821,"default_branch":"dev"}},"_links":{"self":{"href":"https://api.github.com/repos/opf/openproject/pulls/6140"},"html":{"href":"https://github.com/opf/openproject/pull/6140"},"issue":{"href":"https://api.github.com/repos/opf/openproject/issues/6140"},"comments":{"href":"https://api.github.com/repos/opf/openproject/issues/6140/comments"},"review_comments":{"href":"https://api.github.com/repos/opf/openproject/pulls/6140/comments"},"review_comment":{"href":"https://api.github.com/repos/opf/openproject/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/opf/openproject/pulls/6140/commits"},"statuses":{"href":"https://api.github.com/repos/opf/openproject/statuses/7bba51bd44fff4f7159febd6bb880cf29b0a3801"}},"author_association":"CONTRIBUTOR","merged":true,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":{"login":"oliverguenther","id":459462,"avatar_url":"https://avatars3.githubusercontent.com/u/459462?v=4","gravatar_id":"","url":"https://api.github.com/users/oliverguenther","html_url":"https://github.com/oliverguenther","followers_url":"https://api.github.com/users/oliverguenther/followers","following_url":"https://api.github.com/users/oliverguenther/following{/other_user}","gists_url":"https://api.github.com/users/oliverguenther/gists{/gist_id}","starred_url":"https://api.github.com/users/oliverguenther/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oliverguenther/subscriptions","organizations_url":"https://api.github.com/users/oliverguenther/orgs","repos_url":"https://api.github.com/users/oliverguenther/repos","events_url":"https://api.github.com/users/oliverguenther/events{/privacy}","received_events_url":"https://api.github.com/users/oliverguenther/received_events","type":"User","site_admin":false},"comments":3,"review_comments":1,"maintainer_can_modify":false,"commits":40,"additions":7641,"deletions":184,"changed_files":143}}
{"actor":{"display_login":"oliverguenther"}}