It's all about the answers!

Ask a question

Is there a way to add custom attributes in the workitem creation template? Currently only filed against and planned for are present


aastha khatri (22618) | asked Apr 05 '17, 1:50 a.m.

I want to create workitems using workitem template but the issue is I can set only two  fields Filed against and Planned For.

My requirement is to set other custom attributes while creating workitem as I have mandated these custom attributes for workitem creation.

Thanks

One answer



permanent link
Andy Chen (812) | answered Apr 06 '17, 2:39 a.m.

Hi Aastha,

Unfortunately, when creating a work item template from a work item, only the Filed Against and Planned For attributes can be set as template variables and be defined again when creating a work item from a template. All other attributes will be set to the value defined by the template.

However, you can modify the template XML file to do simple string substitutions. Any example XML showcasing this functionality can be found here:
https://jazz.net/jazz/service/com.ibm.team.workitem.common.internal.rest.IAttachmentRestService/itemName/com.ibm.team.workitem.Attachment/240189

If you still feel strongly about this functionality, you may have to raise an enhancement request.

For further information on Work Item Templates:
https://jazz.net/wiki/bin/view/Main/WorkItemTemplates

Your answer


Register or to post your answer.