Can I obtain and download a file from source control if I have the URL using a state transition or save on a work item?
Hi,
I have a work item type called A and this contains a field which is a URL to a file in source control within RTC.
This would be triggered on SAVE or STATE CHANGE of a work item.
Thanks! |
2 answers
Ralph Schoon (63.3k●3●36●46)
| answered Jun 12 '15, 2:44 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
This should theoretically be possible.
However, where is the location? Do you write a server follow up action? Do you write a client follow up action? Can you access the location from within the context of the application server or client? |
https://localhost:7443/jazz/web/projects/JP2047#action=com.ibm.team.scm.viewChangeSetItem&contextItemId=&contextItemType=com.ibm.team.scm.Workspace&componentItemId=_TxNZICI0EeW-mdsed6wq4A&itemType=com.ibm.team.filesystem.FileItem&itemId=_QegBcC9JEeW6da1zRid3Tw&stateId=_Qen9RC9JEeW6da1zRid3Tw
https://localhost:7443/jazz/service/com.ibm.team.filesystem.service.internal.rest.IFilesystemContentService/-/_TxNZICI0EeW-mdsed6wq4A/README.doc?itemId=_QegBcC9JEeW6da1zRid3Tw&stateId=_Qen9RC9JEeW6da1zRid3Tw&platformLineDelimiter=CRLF Using the values obtained from the URL..... String componentItemID_String = "_TxNZICI0EeW-mdsed6wq4A";
???
How to get the file content? Thanks! Comments
Ralph Schoon
commented Jul 21 '15, 2:50 a.m.
| edited Jul 21 '15, 2:50 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
All examples are in my blog. There is no server side extension that downloads a file. Download is typically also something that is in the client API. You will have to find out if that is possible on your own.
|
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.