It's all about the answers!

Ask a question

How the RTC ant task to get the build related workitems?


Jia Jia Li (8058157192) | asked Apr 02 '15, 5:50 a.m.
edited Apr 08 '15, 11:00 a.m. by Dejan Custic (2855)
The build result shows the related work item, but I need to pass the work item ids in ant task, how can I get the related work item ids in ant? Thanks!

Accepted answer


permanent link
Ralph Schoon (63.5k33646) | answered Apr 02 '15, 5:59 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
Please take the second to properly tag your questions with the product. I don't want to have to do that for you.

Please see the product documentation for the ant tasks e.g. https://www-01.ibm.com/support/knowledgecenter/SSYMRC_5.0.2/com.ibm.team.build.doc/topics/r_ant-tasks.html

You might find that no such ANT task exist.

This functionality is basically a by product of the snapshot created for the build and retrieved using the Jazz SCM capabilities.

You can try to use the SCM command line to get that data from the snapshot. See the product documentation https://www-01.ibm.com/support/knowledgecenter/SSYMRC_5.0.2/com.ibm.team.scm.doc/topics/c_scm_cli.html for the commands available. See the command compare.

Or you can use the API to do this as well as I answered on your duplicate question: https://jazz.net/forum/questions/177728/how-the-rtc-ant-task-to-get-the-build-email-notification-distribution-list

Jia Jia Li selected this answer as the correct answer

One other answer



permanent link
Jia Jia Li (8058157192) | answered Apr 02 '15, 10:14 a.m.
Thanks Ralph, if I want to retrieve the workitem by scm from snapshot, I think the first thing is to get the snapshot information, in the ant task product document, I did not find any ant task for snapshot, so maybe I need addition API to get the build snapshot?

Comments
Ralph Schoon commented Apr 02 '15, 10:25 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER

I don't currently know how the snapshot gets its name - I'd investigate the JKE Banking example.
You could try to search for the current snapshot/baseline as the one you are interested in is the last. You want to compare that with the second last.

Your answer


Register or to post 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.