Reference issues from parent project when committing in child project (OD-1860)
empinator opened 2 years ago

Hi there,

our setup consists of various artifacts which are developed within child projects which all contribute to the shippable product. Since everything follows one roadmap we only have one issue management on the parent project.

However, if I commit something within the child-project with a comment referencing an issue from the parent, no activity is added to the issue. Clicking on an issue number on a file's last commit comment within leads to a 404, since it's looking for the issue inside the child project.

I did find this particular ticket seeming to relate to the same issue: #695 But I can't figure out how to set up the project(s) in order work that way.

Am I doing something wrong or is this feature simply not working?

If this is not working at the point I was wondering if this feature is planned in the near future, by having an extra setting to either say "use parent project's issue management: true/false" or, even better, "use issue management of this project: "? Looking foward to your reply, best - e

  • empinator commented 2 years ago

    So, I guess I found a way by naming the referenced (parent-)project as a prefix to the issue id, like "onedev#1234" Is that the only way or can I define a default?

  • Robin Shen commented 2 years ago

    As you've discovered, project path needs to be prefixed before issue number to reference isssues in other projects to avoid potential conflicts and confusions.

  • empinator commented 2 years ago

    thank you very much for your reply. I guess it makes sense then to force a prefix with a commit comment through a pre-commit hook. thanks again.

  • empinator changed state to 'Closed' 2 years ago
    Previous Value Current Value
    Open
    Closed
  • Robin Shen commented 2 years ago

    With OneDev 10.6, you may specify project key, and references issues in form of <project key>-<issue number> which is short and stable compared to the <project path>#<issue number> approach.

  • Markus Wildemann commented 2 years ago
    Very nice. Thanks for the update!
issue 1/1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (4)
Reference
OD-1860
Please wait...
Connection lost or session expired, reload to recover
Page is in error, reload to recover