Commit fails and quick search doesn't work with the error "Commit rejected: No project accepts this commit"

Still need help?

The Atlassian Community is here for you.

Ask the community

Symptoms

The quick search doesn't work for one of the projects and the commits also fail with the message:

commit -m "[SS10-1] Changes to Improve Code Quality for Wiki Documentation - making it so you don't have to hard code the XML list" C:/src/trunk/sdx-mv90-adapter/sdx-mv90-adapter-war/src/test/java/com/landisgyr/sdx/mv90/SmokeTestWithMocksXmlCopyJUnit4Runner.java
Sending C:/src/trunk/sdx-mv90-adapter/sdx-mv90-adapter-war/src/test/java/com/landisgyr/sdx/mv90/SmokeTestWithMocksXmlCopyJUnit4Runner.java
Transmitting file data ...
A repository hook failed
svn: Commit failed (details follow):
svn: Commit blocked by pre-commit hook (exit code 1) with output:
Committer: bherschberger
Commit message: "[SS10-1] Changes to Improve Code Quality for Wiki Documentation - making it so you don't have to hard code the XML list"
Commit rejected: No project accepts this commit. Project [SDXADMIN]: Commit message must contain at least one valid issue key. Project [SQ]: Commit message must contain at least one valid issue key. Project [SA]: Commit message must contain at least one valid issue key. Project [SC]: Commit message must contain at least one valid issue key. Project [SS]: Commit message must contain at least one valid issue key. Project [SK]: Commit message must contain at least one valid issue key. Project [SS10]: Commit message must contain at least one valid issue key. Project [SD]: Commit message must contain at least one valid issue key. Project [SX]: Commit message must contain at least one valid issue key.

Cause

The project you are trying to search/commit has numbers or invalid characters in the project key. The project was possibly created in an older version of JIRA which still allowed the number usage in the project key. This is already being tracked in this improvement request:

JRA-37496 - Getting issue details... STATUS

Workaround

  1. Create a new project with a clean project key (only uppercase letters);
  2. In the issue navigator, search for all the issues of the SDXMV90 project;
  3. In the "Tools" icon on the right corner of the screen, choose the option "all (xx) issue(s)";
    (info) Where 'xx' is the number of issues returned in the search;
  4. Choose the "Move Issues" option;
  5. Select the project you created in the first step to move the issues to;
  6. Finish the bulk operation;

Resolution

Upgrade to JIRA 6.1 or later and then rename the project key.

Last modified on Mar 30, 2016

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.