Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#254 Jira Cloud Support #378

Open
wants to merge 73 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
89650ca
feat: add JiraAppController for logging purposes
May 30, 2023
28c790a
feat: expand logging
May 31, 2023
ca8156d
fix: add mapping for dev.diveni.io
May 31, 2023
0c19d8b
fix: allow all origins
May 31, 2023
bf8b158
Merge branch 'main' of https://github.com/Sybit-Education/Diveni into…
Jul 10, 2023
4f44993
fix: refactoring JiraOAuth
Aug 1, 2023
e63eb6c
fix: change jiraCloud for non user-specific use
Aug 1, 2023
344e0f3
fix: change paths
Aug 1, 2023
fe69131
fix: typo and rename JiraComponent to IssueTrackerComponent
Aug 1, 2023
aa4a5da
fix: remove unused component
Aug 1, 2023
aaf2ba5
fix: change endpoints and add oauth2 endpoints to jira cloud
Aug 1, 2023
c4026ad
fix: fix endpoint
Aug 2, 2023
dff8951
fix: rename parameter and add sanitizer
Aug 2, 2023
b6bcf1a
feat: add API calls
Aug 2, 2023
d4a5a8e
fix: add logic to remove session from access tokens
Aug 2, 2023
23e5de9
feat: merge jira cloud and server component
Aug 2, 2023
0ca9dca
Merge branch 'main' of https://github.com/Sybit-Education/Diveni into…
Aug 2, 2023
eb473bd
fix: remove unused view
Aug 2, 2023
8b7d83f
fix: change return value from CloudRequestToken
Aug 2, 2023
44862fa
fix: only add Content-Type if content is null
Aug 2, 2023
40f4c6a
fix: remove unused controller
Aug 2, 2023
97f3dc7
fix: deprecation
Aug 2, 2023
443301d
fix: only show buttons if service is enabled
Aug 7, 2023
e9b2f0b
feat: add i18n support for input placeholder
Aug 7, 2023
4937fb3
fix: improve jira cloud logic
Aug 7, 2023
a537d2d
fix: remove unused code
Aug 7, 2023
ac3866c
fix: remove camelCase from endpoint and remove warning
Aug 8, 2023
ae01bc8
fix: remove unused files
Aug 8, 2023
968db25
feat: update documentation
Aug 8, 2023
d053a6b
fix: refactor code and remove jira-url as parameter for generating ac…
Aug 9, 2023
03f646b
Merge branch 'main' of https://github.com/Sybit-Education/Diveni into…
Aug 9, 2023
240e375
fix: token not received and change session property from accessToken …
Aug 9, 2023
49128b1
fix: restore cors settings
Aug 9, 2023
c78592f
fix: remove redundant id
Aug 9, 2023
b8f9d34
fix: add NotNull to instance variables
Aug 9, 2023
e477e92
fix: remove unused property
Aug 9, 2023
89c9167
fix: typo
Aug 9, 2023
e007d9c
feat: add error message for not setting up application link
Aug 9, 2023
1f60aa7
fix: change from static methods to instance methods
Aug 10, 2023
c2966a7
fix: change the width of the input field
Aug 10, 2023
2941c45
feat: update documentation
Aug 10, 2023
c50353b
feat: add popover to refer to documentation
Aug 10, 2023
10ad16b
fix: add forbidden task type to search query
Aug 10, 2023
49a6d44
feat: add javaDoc
Aug 11, 2023
d0a0a85
fix: typo and minor change
Aug 11, 2023
3444efb
fix: remove unused imports
Aug 11, 2023
b5e0888
Google Java Format
Aug 11, 2023
0c3f786
fix: change misleading job name
Aug 11, 2023
92244c9
fix: file extension
Aug 11, 2023
7920015
fix: move images for organization purposes
Aug 11, 2023
2385cea
fix: image path
Aug 11, 2023
ca66cb0
fix: update docs
Aug 15, 2023
ce96786
fix: update docs
Aug 15, 2023
ae4e71d
fix: add space to resolve bad request
Aug 15, 2023
0a76393
Merge branch 'main' of https://github.com/Sybit-Education/Diveni into…
Aug 18, 2023
a9e67d2
fix: bad request, issue type not found
Aug 18, 2023
7fed759
Google Java Format
Aug 18, 2023
0902722
Merge branch 'main' of https://github.com/Sybit-Education/Diveni into…
Aug 22, 2023
8ca0ace
fix: reporter missing for jira server when creating an issue
KzuDemEvin Sep 18, 2023
211f922
Google Java Format
Sep 18, 2023
286b309
fix: use correct reporter
KzuDemEvin Sep 20, 2023
cb39b34
fix: use local method
KzuDemEvin Sep 20, 2023
a0f04f5
Merge remote-tracking branch 'origin/feature/254-jira-plugin' into fe…
KzuDemEvin Sep 20, 2023
3069e61
Merge branch 'main' of https://github.com/Sybit-Education/Diveni into…
KzuDemEvin Oct 24, 2023
0d9f74c
fix: resolve merge conflicts
KzuDemEvin Oct 24, 2023
b81a7c2
Merge remote-tracking branch 'origin/main' into feature/254-jira-plugin
SponsoredByPuma Nov 7, 2023
f30d55c
fix merge conflicts
SponsoredByPuma Nov 7, 2023
f65d2f6
Merge remote-tracking branch 'origin/main' into feature/254-jira-plugin
SponsoredByPuma Dec 6, 2023
5486412
Google Java Format
Dec 6, 2023
ef6a5eb
Merge remote-tracking branch 'origin/main' into feature/254-jira-plugin
SponsoredByPuma Jan 10, 2024
e758e53
fix: b-modal not opening & closing
SponsoredByPuma Jan 10, 2024
c42de37
Google Java Format
Jan 10, 2024
b76ff04
Merge remote-tracking branch 'origin/main' into feature/254-jira-plugin
SponsoredByPuma Feb 21, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
workflow_dispatch:

jobs:
build-and-deploy:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand Down
13 changes: 4 additions & 9 deletions backend/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,11 @@ SERVER_URL=http://localhost:8080
LOCALE=en


#ClientId and ClientSecret are shown in the Atlassion Developer app settings
JIRA_CLOUD_CLIENTID=0XeKG8gq0JWWAShLLUv6Y27Zh8B9pPt8
JIRA_CLOUD_CLIENTSECRET=EJmAzc3yi1mXhlHEUx7kNDxa8VrbrH6NE79_839izauaWHGoBGnT9iRs90h9N1t9
#Consumer key
JIRA_CLOUD_CONSUMERKEY=OauthKey

#URL for the authorization server from Jira Cloud
JIRA_CLOUD_AUTHORIZE_URL=https://auth.atlassian.com/authorize?...

#The estimation field is a customfield which is different for every Jira instance and must therefore be set manually
JIRA_CLOUD_ESTIMATIONFIELD=customfield_10016
#Private key
JIRA_CLOUD_PRIVATEKEY=[key]


#URL to the Jira Server instance
Expand All @@ -32,7 +28,6 @@ JIRA_SERVER_ESTIMATIONFIELD=customfield_estimation
JIRA_SERVER_RANKNAME=RANK



#The name of the organization in Azure
AZURE_ORGANIZATION=organization

Expand Down
148 changes: 0 additions & 148 deletions backend/aume.iml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
import io.diveni.backend.service.projectmanagementproviders.azuredevops.AzureDevOpsService;
import io.diveni.backend.service.projectmanagementproviders.github.GithubService;
import io.diveni.backend.service.projectmanagementproviders.gitlab.GitlabService;
import io.diveni.backend.service.projectmanagementproviders.jiracloud.JiraCloudService;
import io.diveni.backend.service.projectmanagementproviders.jiraserver.JiraServerService;
import io.diveni.backend.service.projectmanagementproviders.jira.cloud.JiraCloudService;
import io.diveni.backend.service.projectmanagementproviders.jira.server.JiraServerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
Expand All @@ -18,11 +18,11 @@
@RequestMapping("/config")
public class ConfigController {

@Autowired private JiraServerService jiraServerService;
private JiraServerService jiraServerService;

@Autowired private JiraCloudService jiraCloudService;
private JiraCloudService jiraCloudService;

@Autowired private AzureDevOpsService azureDevOpsService;
private AzureDevOpsService azureDevOpsService;

@Autowired private GithubService githubService;

Expand All @@ -31,14 +31,13 @@ public class ConfigController {
@Value("${LOCALE:en}")
private String LOCALE;

@GetMapping("/issueTracker")
@GetMapping("/issue-tracker")
public Map<String, String> getIssueTrackerConfig() {
Map<String, String> issueTrackerConfig = new HashMap<>();
issueTrackerConfig.put(
"isJiraServerEnabled", Boolean.toString(jiraServerService.serviceEnabled()));
issueTrackerConfig.put(
"isJiraCloudEnabled", Boolean.toString(jiraCloudService.serviceEnabled()));
issueTrackerConfig.put("jiraCloudAuthorizeUrl", jiraCloudService.getJiraCloudAuthorizeUrl());
issueTrackerConfig.put(
"isAzureDevOpsEnabled", Boolean.toString(azureDevOpsService.serviceEnabled()));
issueTrackerConfig.put("isGithubEnabled", Boolean.toString(githubService.serviceEnabled()));
Expand All @@ -52,4 +51,19 @@ public Map<String, String> getLocale() {
localeConfig.put("locale", LOCALE);
return localeConfig;
}

@Autowired
public void setJiraServerService(JiraServerService jiraServerService) {
this.jiraServerService = jiraServerService;
}

@Autowired
public void setJiraCloudService(JiraCloudService jiraCloudService) {
this.jiraCloudService = jiraCloudService;
}

@Autowired
public void setAzureDevOpsService(AzureDevOpsService azureDevOpsService) {
this.azureDevOpsService = azureDevOpsService;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ public class ErrorMessages {

public static String wrongPasswordMessage = "no or wrong password given";

public static String failedToAuthorizeToJiraCloud =
"failed to authorize to JIRA Cloud! Make sure the application link is set up correctly!";

public static String failedToRetrieveRequestTokenErrorMessage =
"failed to retrieve request token";

Expand Down
Loading
Loading