Attribute history of change controlled attributes using Agile SDK

can we get the attribute history of change controlled attributes using Agile SDK?for released items

Add Comment
1 Answer(s)

Hi Vidya,

I am safely assuming that you are asking about the Title Block attributes (including Page 2 & 3) which are change controlled. One way is to customize the layout of Item Attribute History Report (to include the necessary Page Two & Three attributes) and run it for the item.

But since you want to use Agile SDK, I don’t see any option to generate a report to view the history of attribute value changes through all revisions.

However, you can get the old value which was redlined with a ECO/MCO for a particular revision, like this (giving example for PageThree.List01 attribute):

IItem item = session.getObject(IItem.OBJECT_TYPE, “P00001”);
item.setRevision(“C00001”);
IRow row;
for(Object obj : item.getTable(ItemConstants.TABLE_REDLINEPAGETHREE){
      row = (IRow)obj;
      System.out.println(“Cell old value is: ” +row.getCell(ItemConstants.ATT_PAGE_THREE_LIST01).getOldValue());
      System.out.println(“Cell current value is: ” +row.getCell(ItemConstants.ATT_PAGE_THREE_LIST01).getValue());
}
Hope this helps.

Agile Expert Answered on August 1, 2018.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.