#1628  How to add cross-project link?
Closed
wojtek opened 6 months ago

We have defined a couple of link types (as per https://docs.onedev.io/tutorials/issue/issue-links). In general linking within project works fine but we can't figure out how to link to issues in different projects (though there are such links after importing!)

I tried:

  • pasting complete URL
  • pasting <project_id>#<issue_id>
  • pasting <full_project_path>/<project_id>#<issue_id>
Robin Shen commented 6 months ago

The syntax to refer to issue in another project is <full project path>#<issue number>

wojtek commented 6 months ago

Hmm... indeed it works - not sure it didn't. Copying "reference link" did it, though I had to remove "issue" prefix -- maybe it could be removed as well as part of onedev/server#1627 ?

EDIT: could it also work with only project#number listing all matching project from all subprojects?

Robin Shen changed state to 'Closed' 6 months ago
Previous Value Current Value
Open
Closed
Robin Shen commented 6 months ago

maybe it could be removed as well as part of onedev/server#1627

Already removed via that issue fix

could it also work with only project#number listing all matching project from all subprojects?

The syntax project#number is reserved for issue references.

issue 1 of 1
Type
Question
Priority
Normal
Assignee
Labels
No labels
Issue Votes (0)
Watchers (3)
Reference
onedev/server#1628
Please wait...
Page is in error, reload to recover