You can use the buildResultPublisher task to update the tags for a build result. For more information on ant tasks refer to https://jazz.net/help-dev/clm/index.jsp?re=1&topic=/com.ibm.team.build.doc/topics/r_ant-tasks.html&scope=null
Thanks,
Kishore
Chris Graham selected this answer as the correct 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.