Hi Hwang,
The following forum post contains code that should help you: https://jazz.net/forum/questions/90099/how-to-get-and-set-the-iteration-targetid-using-java-api
Sungyeun Hwang 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.