From 034c46bf5b9d4ac2be3cdcab5cf2121b2bb4a41d Mon Sep 17 00:00:00 2001 From: Johannes Millan Date: Sat, 4 Feb 2017 02:35:49 +0100 Subject: [PATCH] add jira config to create project dialog --- app/scripts/constants.js | 1 + .../create-project/create-project-c.html | 7 +- .../create-project/create-project-c.js | 3 +- app/scripts/main/global-services/jira-s.js | 2 +- .../jira-settings/jira-settings-d.html | 211 +++++++++--------- 5 files changed, 119 insertions(+), 105 deletions(-) diff --git a/app/scripts/constants.js b/app/scripts/constants.js index b3276b5de5..7e02bdafc6 100644 --- a/app/scripts/constants.js +++ b/app/scripts/constants.js @@ -86,6 +86,7 @@ } }, jiraSettings: { + isJiraEnabled: false, isFirstLogin: true, isWorklogEnabled: true, isAutoWorklog: false, diff --git a/app/scripts/dialogs/create-project/create-project-c.html b/app/scripts/dialogs/create-project/create-project-c.html index 55eba4eb3b..755f0ec85a 100644 --- a/app/scripts/dialogs/create-project/create-project-c.html +++ b/app/scripts/dialogs/create-project/create-project-c.html @@ -1,5 +1,5 @@ + class="create-project-dialog">
@@ -25,6 +25,11 @@ required aria-label="Title"> + + + +
diff --git a/app/scripts/dialogs/create-project/create-project-c.js b/app/scripts/dialogs/create-project/create-project-c.js index 1c0998440a..ca1c7ccf89 100644 --- a/app/scripts/dialogs/create-project/create-project-c.js +++ b/app/scripts/dialogs/create-project/create-project-c.js @@ -14,8 +14,9 @@ .controller('CreateProjectCtrl', CreateProjectCtrl); /* @ngInject */ - function CreateProjectCtrl($mdDialog, Projects, SimpleToast) { + function CreateProjectCtrl($mdDialog, Projects, SimpleToast, IS_ELECTRON) { let vm = this; + vm.IS_ELECTRON = IS_ELECTRON; vm.task = {}; vm.projectSettings = {}; diff --git a/app/scripts/main/global-services/jira-s.js b/app/scripts/main/global-services/jira-s.js index 431c15623e..9b35ada862 100644 --- a/app/scripts/main/global-services/jira-s.js +++ b/app/scripts/main/global-services/jira-s.js @@ -126,7 +126,7 @@ } function isSufficientJiraSettings() { - return $localStorage.jiraSettings && $localStorage.jiraSettings.host && $localStorage.jiraSettings.userName && $localStorage.jiraSettings.password && $localStorage.jiraSettings.password; + return $localStorage.jiraSettings && $localStorage.jiraSettings.isJiraEnabled && $localStorage.jiraSettings.host && $localStorage.jiraSettings.userName && $localStorage.jiraSettings.password && $localStorage.jiraSettings.password; } this.transformIssues = (response) => { diff --git a/app/scripts/settings/jira-settings/jira-settings-d.html b/app/scripts/settings/jira-settings/jira-settings-d.html index 89dbee4688..14ef8dc367 100644 --- a/app/scripts/settings/jira-settings/jira-settings-d.html +++ b/app/scripts/settings/jira-settings/jira-settings-d.html @@ -1,112 +1,119 @@
-

Jira-Setup

-
- - - - - - - - - - - - - - - -
e.g.: assignee = "{{ vm.settings.userName }}" AND resolution = Unresolved ORDER BY updatedDate DESC
-
- - Update issue description on jira if task notes are updated - - - - Test credentials - -
-

Worklog

+ + Enable Jira Integration + +
+

Jira-Integration

+ -
- - Open worklog dialog for adding a worklog to jira when task is done - -
-
- - -
- - Open worklog dialog when sub task is done and not for tasks with sub tasks themselves - -
-
- - -
- - (not recommended!) Send updates to worklog automatically without dialog - -
-
-
- - -
-

Default Transitions

-

Jira enables a wide configuration of transitions usually coming into action as different columns on your jira agile board. That's why we can't make assumptions about where and when to transition your tasks and you need to set it manually.

- - - - Always ask - Don't transition - - {{jiraTransition.id}} - {{jiraTransition.name}} - - + + - - - Always ask - Don't transition - - {{jiraTransition.id}} - {{jiraTransition.name}} - - + + - - - Always ask - Don't transition - - {{jiraTransition.id}} - {{jiraTransition.name}} - - + + -
-
+ + + +
e.g.: assignee = "{{ vm.settings.userName }}" AND resolution = Unresolved ORDER BY updatedDate DESC
+
+ + Update issue description on jira if task notes are updated + + + + Test credentials + +
+

Worklog

- + +
+ + Open worklog dialog for adding a worklog to jira when task is done + +
+
+ + +
+ + Open worklog dialog when sub task is done and not for tasks with sub tasks themselves + +
+
+ + +
+ + (not recommended!) Send updates to worklog automatically without dialog + +
+
+
+ + +
+

Default Transitions

+

Jira enables a wide configuration of transitions usually coming into action as different columns on your jira agile board. That's why we can't make assumptions about where and when to transition your tasks and you need to set it manually.

+ + + + Always ask + Don't transition + + {{jiraTransition.id}} - {{jiraTransition.name}} + + + + + + + Always ask + Don't transition + + {{jiraTransition.id}} - {{jiraTransition.name}} + + + + + + + Always ask + Don't transition + + {{jiraTransition.id}} - {{jiraTransition.name}} + + + +
+ + + +
\ No newline at end of file