Get URL for SCM folder that does not contain the Project Area name
Hello everyone,
I need to get the URL for a SCM folder in order to link it as a Related Artifact to a workitem.
The only URL I could obtain was the one shown in the browser when opening that SCM folder, e.g.:
The problem is that this URL contains the Project Area name, which can cause some problems for us in the future. For example, if the name is changed, then the link would become invalid.
I tried to search for some kind of “shortened” link that contains only ids, but I did not succeed.
For workitems this is possible:-link with PA name: https://server:port/ccm/web/projects/Project_Area_Name#action=com.ibm.team.workitem.viewWorkItem&id=workitemId
-link without the PA name: https://server:port/ccm/resource/itemName/com.ibm.team.workitem.WorkItem/workitemId
Do you have any idea how could I obtain the link without the PA name in it?
Kind regards,
Ana R.
<o:p> </o:p>
<o:p> </o:p>
<o:p> </o:p>
<o:p> </o:p>
One answer
Several issues here.
- As far as I know, SCM folders are not under version control, only the changes to files are.
- The Web Browser is not a full blown SCM client and you end up having UI URIs and not SCM URI's.
- In the Eclipse UI I was able to open the properties of a folder under version control. Right click in the package explorer select Properties and then select Jazz Source Control, where you find URIs that are not UI URI's.
I am not sure how far it would possible to implement what you want to do. I am not sure what is the business case that would require to do this or we have UI support for it. I know that there are possibilities to select the URIs for some of the objects, but there are some missing.