It's all about the answers!

Ask a question

Set acceptance criteria programatically through Java API

Gaurav Tapadkar (2613) | asked Apr 15 '14, 1:34 p.m.
 I want to set acceptance criteria for a Story in RTC through Java API. I do not see any options on work item to set it. Let me know what is the best way to set the value.

sam detweiler commented Apr 15 '14, 1:41 p.m. | edited Apr 15 '14, 1:41 p.m.

acceptance criteria is a field..
you need to get the attribute handle for the Acceptance Criteria  field

        IAttribute ata = workItemCommon.findAttribute(projectArea,
                "", monitor);
       workItem.setValue(ata, value)
( working copy of course)

Be the first one to answer this question!

Register or to post your answer.