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

Assumes that the jiraURL is of the form .../browse/PROJECTKEY #144

Open
dgrierso opened this issue Jan 28, 2021 · 1 comment
Open

Assumes that the jiraURL is of the form .../browse/PROJECTKEY #144

dgrierso opened this issue Jan 28, 2021 · 1 comment
Assignees

Comments

@dgrierso
Copy link
Collaborator

dgrierso commented Jan 28, 2021

This code assumes that the Jira URL specified in the project pom is of the form $JIRAROOT/browse/PROJECTKEY; however with Jira 7+ the base URL for a project (i.e. when you click the project icon in a server installation) you get: $JIRAROOT/projects/PROJECTKEY/summary

if ( getJiraProjectKey() == null ) {
setJiraProjectKey(jiraURL.substring(jiraURL.lastIndexOf(JIRA_ISSUE_URL_PREFIX) + JIRA_ISSUE_URL_PREFIX.length()));
setJiraProjectKey(getJiraProjectKey().replaceAll("/", ""));
}

We should perform better interpretation of the URL passed to this to be able to cope with this change in Jira behaviour.

@dgrierso dgrierso self-assigned this Jan 28, 2021
@schrepfler
Copy link
Owner

Thanks for reporting this @dgrierso

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants