It's all about the answers!

Ask a question

Updating Contributor List attribute using Script-based Default or Calculated Value provider


Swathi Brahma (1145) | asked Aug 18 '14, 4:35 p.m.
Hi,

I would like to update a custom Owners attribute (of type Contributor List) to take the initial value from the "Owned By" value.

I tried using the following code. However, it doesn't seem to work.

getValueSet: function(attribute, workItem, configuration)
  {
var ownedBy = workItem.getValue(WorkItemAttributes.OWNER);
var owners = [];
owners.push(ownedBy);
return owners;
  }

Comments
Donald Nong commented Aug 19 '14, 3:35 a.m.

You may have to do some debugging and see if it is the same problem described in this post.

Be the first one to answer this question!


Register or to post your answer.