Project

General

Profile

Actions

Defect #3087

closed

Revision referring to issues across all projects

Added by Zarooba Rozruba about 15 years ago. Updated about 12 years ago.

Status:
Closed
Priority:
Normal
Category:
SCM
Target version:
Start date:
2009-03-31
Due date:
% Done:

80%

Estimated time:
Resolution:
Fixed
Affected version:

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

commit_update_parent_project.patch (2.58 KB) commit_update_parent_project.patch Patch against 2731 for issue #3087 Lincoln Stoll, 2009-05-11 02:02
100324-cross-project-revisions.patch (641 Bytes) 100324-cross-project-revisions.patch William Baum, 2010-03-24 16:12

Related issues

Related to Redmine - Defect #4163: Allow cross-project references in commitsClosed2009-11-04

Actions
Related to Redmine - Defect #3376: Moving an issue to another project copies the associations revisions instead of updating themClosedJean-Philippe Lang2009-05-17

Actions
Related to Redmine - Feature #3346: Support for cross-project revision linksClosed2009-05-12

Actions
Related to Redmine - Feature #779: Multiple SCM per projectClosedJean-Philippe Lang2008-03-04

Actions
Has duplicate Redmine - Feature #12726: Display the associated revisions with a given issue even if the project doesn't have a dedicated repositoryClosed

Actions
Actions

Also available in: Atom PDF