Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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!

0 votes


Accepted answer

Permanent link
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

1 vote


One other answer

Permanent link
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?

0 votes

Comments

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 log in 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 1,381
× 562

Question asked: Apr 02 '15, 5:50 a.m.

Question was seen: 3,479 times

Last updated: Apr 08 '15, 11:00 a.m.

Confirmation Cancel Confirm