Trac Links

TracLinks are a fundamental feature of Trac, because they allow easy hyperlinking between the various entities in the system—such as tickets, reports, changesets, Wiki pages, milestones, and source files—from anywhere WikiFormatting is used.

Ticket에 Wiki로 링크를 걸 수 있다. 반대도 가능.

- 첨부파일 링크
attachment:the_file.txt

//다른 위키페이지의 첨부파일 링크
attachment:the_file.txt:wiki:MyPage //안됨
attachment:wiki:MyPage:the_file.txt
[attachment:wiki:MyPage:the_file.txt 클릭하세요]
[/projects/MyProject/attachment/wiki/MyPage/한글%20파일.txt] //파일명이 한글인 경우에는 이렇게 밖에 안됨.

attachment:Settlement_SqlMap.xml#L349 //첨부파일의 라인을 지정할 수 없음. source만 가능

//다른 티켓의 첨부파일 링크
attachment:ticket:42:error.log //42번 티켓에 첨부된 error.log

- 마일스톤 링크
[milestone:demo demo 마일스톤]

- 티켓 링크
[ticket:15 Link to Ticket 15]

- 소스 링크
[source:/demo/trunk/resources/data/script/demo_function_dev.sql@3 함수 생성]
source:/demo/trunk/WebContent/WEB-INF/ibatis_config/sql/Settlement_SqlMap.xml@12#L349 //리비전 12의 소스에서 349번째 줄

http://1.2.3.4:1234/projects/XxxPrj/browser/com.xxx.ep.logon/trunk/PORTAL-INF/page.jsp?rev=383#L23
source://com.xxx.ep.logon/trunk/PORTAL-INF/page.jsp@383#L23

- 특히 SVN과 연동해서 변경사항이나 소스에 대한 링크를 걸어서 Ticket이나 Wiki에 기록할 수 있다.
[15]

http://1.2.3.4:1234/projects/XxxPrj/changeset/1
r1, [1], changeset:1, or (restricted) [1/trunk], changeset:1/trunk


- 위키 페이지 작성시 "변경사항에 대한 설명 (부가정보)"에 링크를 걸 수 있다.
#1 //티켓
http://google.com //외부 링크
[wiki:link]에서 확인 가능함. //같은 프로젝트 위키 페이지
[/projects/XxxPrj/wiki/sysinfo] //다른 프로젝트 위키 페이지

- 다른 프로젝트로 링크
[/projects/XxxPrj/wiki/sysinfo]
http://1.2.3.4/projects/XxxPrj/wiki/sysinfo //이것도 가능, 그러나 위와 같이 하자.