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

How can I define a work item template that allows the instatiator to set attribute values?

Good Morning,

When creating a work item template that allows me to create a string of linked work items I would like to be able to allow the creator to change the values of some of the attributes.

During the wizard for creating the template I can only select "Planned For" and "Filed Against" as variables that should be set individually for each template instantiation.

How can I add attributes such as the Description, Owner, and custom attributes to the template to allow them to be defined at template instantiation?

Thank you and best regards,

Andrew

1 vote


Accepted answer

Permanent link
Hi, Andrew! 
Sorry for the delay in getting back to you. I thought I was going to be cool and get this to work based on this article: https://jazz.net/wiki/bin/view/Main/WorkItemTemplates

And I got close. I exported a template that I created and then opened the XML file for it. I found an owner reference and changed it to look like:
	<rtc_cm:ownedBy rdf:resource="${ownedBy:Contributor}"/>
Saved it and imported it back into my project area. I tried to create work items from the template and even got a section that looked like it would let me choose an owner, but got an error when I tried to use it.


So it seems the wiki article is correct (and current) in that only Planned For and Filed Against are supported at this time. If you feel strongly about this feature, please look to see if there is an existing Enhancement request to upvote or write one of your own.

Andrew Trobec selected this answer as the correct answer

1 vote

Comments

That bit of xml I dropped in didn't come out quite write, but I'm sure you can see where I was headed.


Also, while it is a poor substitute for what you would like to do, at least in the Eclipse client, the items created from the import are shown in the Work Items table. You can easily select them all and assign an owner from there. 

Hello Millard,


Thank you for the attempt.  I think it would be a very useful function to be able to specify which values you would like to assign when creating work item relationships from a template, especially for child work items.

If I have time I will take a look at the enhancement requests to see whether I am able to find anything to upvote.

Best regards,

Andrew


One other answer

Permanent link
Hello Andrew
This Enhancement https://jazz.net/jazz/web/projects/Rational%20Team%20Concert#action=com.ibm.team.workitem.viewWorkItem&id=366292
was opened to add this functionality.
Please, add your comments on it.
Thanks !
Isabel

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,926

Question asked: Oct 25 '12, 4:16 a.m.

Question was seen: 5,908 times

Last updated: Aug 20 '15, 10:54 a.m.

Confirmation Cancel Confirm