Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

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

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;
  }

1 vote

Comments

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 log in to post your 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.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 6,130

Question asked: Aug 18 '14, 4:35 p.m.

Question was seen: 4,112 times

Last updated: Aug 19 '14, 3:35 a.m.

Confirmation Cancel Confirm