Defect #3087
closedRevision referring to issues across all projects
80%
Description
Hello
Short summary
I am trying to get a commit from a sub project close/reffer to an issue on a main project.
Nothing is being insert into changesets_issues table.
Further more, if I insert into changesets_issues table myself, the url to repositories/revision/ is generated to main project (where issue exists) instead of pointing to sub project (where the revision exists).
Redmine 0.8.2
Long winded example
I have a parent project on which users can create issues.
However, developers have split this project into distinct components, each with own repository (background tasks, project website, nightly processes). For each component I have create a sub project.
Users do not care about these components.
I have made such that:
- main project has issues module enabled, but repository module disabled
- sub projects have issues module disabled, but repository module enabled
This way all user activity within redmine happends on main project.
Redmine sees repository updates from subprojects and shows them on main project screen.
However, revision to issue (changesets_issues table) is not working.
There are two projects
- Main project : url web id 'main'
http://example/projects/overview/main
- sub project (nightly task) : url web id 'sub'
http://example/projects/overview/sub
issue created ( # 20 ) on main project ( url web id 'main' )
url : http://example/issues/show/20
Developer fixes code ( revision 123 on repository id 11 with changeset_id 1234)
url : http://example/repositories/revision/sub/123
Developers commit comment is : "" commit fixes # 20 ""
When I visit revision from redmine
url : http://example/repositories/revision/sub/123
the string # 20 links properly to my issue:
url : http://example/issues/show/20
However, There is nothing inserted into changesets_issues
I have tried, to create a link by hand:
INSERT INTO changesets_issues ( changeset_id , issue_id ) VALUES ( 1234 , 20 ) ;
This worked, now I see ""Associated Revisions"" under my issue # 20. However, the url is :
url : http://example/repositories/revision/main/123
instead of
url : http://example/repositories/revision/sub/123
closing notes
So two problems are :
1) comment from commit does not close/refer to an issue, if commit is different project than issue
2) once there is cross project entry in changesets_issues table, the issue page generates wrong url to repository revision (ignores the possibility that commit revision on an issue is from different project)
Thank you for reading this, and thank you for looking if this is something to update.
Kind regards
Files
Related issues