how to export defect along with attachments and Comments
Hi I need to export defects from RQM along with Comments and Attachments.
I need this for defect in RQM 2.0 and RQM3.0 versions. Please help.
|
3 answers
Ralph Schoon (63.6k●3●36●46)
| answered Feb 12 '13, 2:50 p.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
There is no built in capability. For RTC I know of this method:
In the past that API worked for RQM as well. I think in 3.x there was a restriction. You could try a mix between CSV export and API usage.
Comments Really guys, why doesn't RTC have an ability to export comments.
As answered on the other question:
Thanks for the clarification. I was able to get your command-line app set up. However, it's currently dying with this exception:
C:\tvalesky\jazz.command.line\WCL_V3.2_20151120\WCL>c:\Progra~1\java\jdk1.8.0_05
\jre\bin\java -Djava.security.policy=rmi_no.policy -Djava.ext.dirs=./lib;C:\tval
esky\jazz.command.line\RTC-Client-plainJavaLib-3.0.1;c:\Progra~1\java\jdk1.8.0_0
5/jre/lib/ext -cp ./lib;C:\tvalesky\jazz.command.line\RTC-Client-plainJavaLib-3.
0.1 -jar wcl.jar
WorkItemCommandLine Version V3.2
Starting Team Platform ...
Error: Command not provided!
Exception in thread "main" java.lang.NullPointerException
at com.ibm.js.team.workitem.commandline.utils.ReferenceUtil.getCLM_WI_En
dPointDescriptorMap(ReferenceUtil.java:215)
at com.ibm.js.team.workitem.commandline.helper.WorkItemUpdateHelper.help
UsageCLMWorkItemLink(WorkItemUpdateHelper.java:3572)
at com.ibm.js.team.workitem.commandline.helper.WorkItemUpdateHelper.help
UsageAllLinks(WorkItemUpdateHelper.java:3520)
at com.ibm.js.team.workitem.commandline.helper.WorkItemUpdateHelper.help
GeneralUsage(WorkItemUpdateHelper.java:3183)
at com.ibm.js.team.workitem.commandline.WorkitemCommandLine.helpGeneralU
sage(WorkitemCommandLine.java:493)
at com.ibm.js.team.workitem.commandline.WorkitemCommandLine.runCommands(
WorkitemCommandLine.java:267)
at com.ibm.js.team.workitem.commandline.WorkitemCommandLine.run(Workitem
CommandLine.java:224)
at com.ibm.js.team.workitem.commandline.WorkitemCommandLine.main(Workite
mCommandLine.java:174)
there is no command provided but there is probably an issue with the API. I have tested it with 4.x up to 6.x. I have no time to look at 3.x in the near future.
Use the Java that comes with RTC as documented. This is likely a Java problem because you use 1.8.
Switched java_home to the Team Concert JDK. Now I'm getting an UnsupportedClassVersionError
C:\tvalesky\jazz.command.line\WCL_V3.2_20151120\WCL>set JAVA_HOME=C:\Progra~1\IB
M\TeamConcert\jdk
C:\tvalesky\jazz.command.line\WCL_V3.2_20151120\WCL>set PLAIN_JAVA=C:\tvalesky\j
azz.command.line\RTC-Client-plainJavaLib-3.0.1
C:\tvalesky\jazz.command.line\WCL_V3.2_20151120\WCL>C:\Progra~1\IBM\TeamConcert\
jdk\jre\bin\java -Djava.security.policy=rmi_no.policy -Djava.ext.dirs=./lib;C:\t
valesky\jazz.command.line\RTC-Client-plainJavaLib-3.0.1;C:\Progra~1\IBM\TeamConc
ert\jdk/jre/lib/ext -cp ./lib;C:\tvalesky\jazz.command.line\RTC-Client-plainJava
Lib-3.0.1 -jar wcl.jar
The java class could not be loaded. java.lang.UnsupportedClassVersionError: (com
/ibm/js/team/workitem/commandline/WorkitemCommandLine) bad major version at offs
et=6
C:\tvalesky\jazz.command.line\WCL_V3.2_20151120\WCL>
showing 5 of 6
show 1 more comments
|
|
We've written simple batch script using CURL and XML command-line parser to download attachments.
Comments Vladimir, Would you mind posting that script? Ralph, I tried that first; I ran into a dead end when Installation Manager wouldn't recognize the version 3.0.1.5 repository as a repository. So the idea of using an external script is appealing.
Ralph Schoon
commented Dec 07 '15, 8:10 a.m.
| edited Dec 07 '15, 8:11 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I don't understand why you think you need an Installation manager. All parts (SDK, Plain Java client libraries, RTC Eclipse client) should be downloadable as plain zip files.
To do this,
you have to do this:
To do that, you have to do this
To do that, you have to do this:
To do that, you have to do this:
For me, I needed the 3.0.1 version, which is this:
To do that, you need to complete section 1.1. Item 3d in section 1.1 tells you to use the installation manager.
You don't have to install the SDK, if you don't want to see the code. You just need a working Eclipse (or even Java), and the Plain Java Client libraries.
Vladimir Amelin
commented Dec 08 '15, 7:58 a.m.
Sorry, can't post full script due to legal issues. But the clue is to get links and invoke download for them:
1) curl -# -k -b %COOKIES% -H "Accept: application/xml" "%HOST%/oslc/workitems/<WI_ID>/rtc_cm:com.ibm.team.workitem.linktype.attachment.attachment?oslc.properties=dc:title,rtc_cm:content"
2) Parse xml to extract attachment links and filenames
3) curl -# -k -b %COOKIES% -e %HOST% -H "Accept: application/xml" "<LINK>" ><FILENAME>
showing 5 of 7
show 2 more comments
|
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.