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

In RTC how can I set the "Planned for" attribute based on the value of the "Type" attribute?

I am working with a client and we would like to set the "Planned for" attribute to a specific iteration based on the value of the "Type" attribute. For example if the "Type" attribute is "Risk" then we would want to default "Planned for" to "RAID Management". We are using RTC version 4.0.5. I have looked at "Value Sets" but have reached the conclusion that this will not work. Any advice / guidance would be most appreciated.

0 votes



3 answers

Permanent link
I am not sure what you gain from that and I am pretty sure it will not be as easy as soon as you have more than one iteration cycle.

Anyway. Attribute customization is across all work items that have the attribute. For attribute customization the only chance would be trying to use a JavaScript based default value as JavaScript allows you to potentially see and react to the work item type. That could look at the type and return the iteration UUID. A calculated value always calculates, so that is not very useful. In JavaScript you have no chance to look up iterations, see the limitations Attribute customization or in Process Enactment Workshop for the Rational solution for Collaborative Lifecycle Management so you are pretty limited in what you can do.

You can use Java for Attribute customization and the API provides you with a little more choices. The limitations are then this API and how attribute customization providers work. See an example here: Attribute Customization – Java Based Value Providers, Conditions and Validators  

My choice would be a work item save (server) follow up action / participant if I wanted to do anything like that, because that gives you the complete API and the most control about what happens. Here an example as entry point A Create Approval Work Item Save Participant. The blog also has examples how to access timelines and iterations.

1 vote


Permanent link

Ian,

Rather than looking into a way to do this within a Work Item;

Why not set up a plan view and then you will be able to create the Work items agains the correct Planned for.

Just a thought.

Regards

Matt

1 vote


Permanent link
 Hi Ian,

You could use a script based calculated value to solve your problem:

for reference: http://www.ibm.com/developerworks/rational/library/rational-team-concert-calculated-fields-work-item/

Hope this helps :)
Thanks,
Abhishek

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
× 10,938
× 6,121

Question asked: Dec 09 '15, 8:43 a.m.

Question was seen: 5,362 times

Last updated: Dec 09 '15, 9:35 a.m.

Confirmation Cancel Confirm