Project

General

Profile

Actions

Defect #9762

closed

Closing issues with commit should be cross project

Added by Daniel Dehennin almost 13 years ago. Updated almost 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Issues workflow
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
Resolution:
Invalid
Affected version:

Description

Test Case:

  1. Open an issue in project1, number <issue>
  2. Make a commit with (Fixes: #<issue>) in project2
  3. Go to project2->repository to update issue tracking (should be a hook ;-))
  4. Figure that the issue is for project2 and not project1
  5. Move issue to project2
  6. Got to project2->repository to update issue tracking (should be a hook ;-))
  7. Issue is not marked as resolved by the commit

As issue number is unique across redmine database, I think the issue should be marked as resolved.
Maybe with a warning for wrong project assignement of the issue.

Regards.


Related issues

Related to Redmine - Defect #8291: Issued refed/closed by repository commit message don't show as associated revisions if issue is in a different project to the repositoryClosed2011-05-04

Actions
Actions #1

Updated by Terence Mill almost 13 years ago

Why don't you add project2 amd project 1 below parent project and manage issue in parent. The it shall work out of the if version sharing is activated box. YOu could also add project 1 below project 2 or try to enable version sharing across als projects. Just an idea.

Actions #2

Updated by Daniel Dehennin almost 13 years ago

Terence Mill wrote:

Why don't you add project2 amd project 1 below parent project and manage issue in parent.

They both have the same parent, but issues are dispatched between projects to be managed by project teams.

The it shall work out of the if version sharing is activated box. YOu could also add project 1 below project 2 or try to enable version sharing across als projects. Just an idea.

Thanks, I'll look at version sharing if it can solve our issue (which is triggered quite often unfortunately).

Actions #3

Updated by Daniel Dehennin almost 13 years ago

Ok, assigning a shared version (across all projects) is not the solution for the test case I described.

After step 5, 6 and 7, the issue is not marked as closed.

Regards.

Actions #4

Updated by Daniel Dehennin almost 13 years ago

I found a reference not really similar #8291.

Regards.

Actions #5

Updated by Daniel Dehennin almost 13 years ago

The cross-project issue handling could be a good thing with multiple fixes, if one commit fix 2 or more issues.

Regards.

Actions #6

Updated by Mischa The Evil almost 13 years ago

It already works cross-project. See r3357 for issue #4674, which was included first in Redmine 0.9.2.

Actions #7

Updated by Daniel Dehennin almost 13 years ago

Mischa The Evil wrote:

It already works cross-project. See r3357 for issue #4674, which was included first in Redmine 0.9.2.

It works genealogically, between a parent and a child.

But not between "brothers", nor "cousins".

Regards.

Actions #8

Updated by Slawomir CALUCH almost 13 years ago

I am also experiencing problems with this issue.
We have a main project for our framework. This framework has multiple sub projects.
We have a main project with multiple sub projects.
These sub projects use a few modules from our framework,

When issues are added in the main projects sometimes they are partially fixed with modifications to the framework and closed with another fix in the project or the other way round. They basically are cross project.

Now we open a second issue in the framework linked to the first issue where the framework team (me) can handle the changes reference commits and add info for future references.

In the future we want to keep the framework accessible only to our core team... but we'd like to be able to close for example 5 or 6 issues at the same time if they have been reported in 4 sub projects for example. Each subproject being managed by a different person/team we won't necessarily want to peek into the framework or across projects (NDAs and other constraints).

The ideal would be to be able to reference issues from other projects in our commits and display this reference even if the link to this commit leads to a denied access. At least we would have a good way to follow all commits that have contributed to one issue even from other teams.

Actions #9

Updated by Daniel Dehennin almost 12 years ago

  • Status changed from New to Resolved

It works, at least since redmine 1.4.4.

Pushing a commit in a project fixing bug of another project works, the issue message has the form:

Applied by commit <PROJECT>:commit:<COMMIT ID>

I'm closing this issue.

Thanks.

Actions #10

Updated by Etienne Massip almost 12 years ago

  • Status changed from Resolved to Closed
  • Resolution set to Invalid
Actions

Also available in: Atom PDF