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

How can I add a default value to one work item type for a shared attribute?

I'm trying to add a default iteration for the Planned For field and since it's a shared field it's adding it to all the work item types.  Is it possible to specify the default value for only 1 work item type using the Process Config or is this going to require a script to implement?

0 votes

Comments

bump bump bump



One answer

Permanent link
Hi Michael,

You can achieve this using a script based default value provider by writing your function to return the different iteration UUIDs depending on workitem type.

You can obtain the UUIDs for your iterations from the rootservices page (https://<host-name>:<port-numbr>/jazz/rootservices) drilling down to project area and then timelines.

 The code below illustrates the general idea.

 getDefaultValue: function(attribute, workItem, configuration) {
            var result;
            var typevar = workItem.getValue("workItemType");
            if(typevar=="defect") result= "_EiPCcBJgEeK6lIYfm2Q12w";
            return result;        
        }

Hope this helps.

0 votes

Your answer

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
× 7,495

Question asked: Sep 05 '12, 7:17 p.m.

Question was seen: 4,931 times

Last updated: Nov 12 '12, 2:56 p.m.

Confirmation Cancel Confirm