Attribute Value Providers
![](http://jazz.net/_images/myphoto/a8dc64fd9a76365e6c69afd2c5389c87.jpg)
I downloaded the Process Template.zip from https://jazz.net/wiki/bin/view/Main/AttributeValueProviders#Provider_Configuration. I modeled my new project after this one, but the filtering doesn't work.
I looked for your filter, "internalSeverity", and couldn't find it anywhere in the xml process configuration, the Enumerations, or the Types and Attributes. Where is "internalSeverity" defined?
My implementation is below. Hope you can help.
I looked for your filter, "internalSeverity", and couldn't find it anywhere in the xml process configuration, the Enumerations, or the Types and Attributes. Where is "internalSeverity" defined?
My implementation is below. Hope you can help.
<attributeDefinition>
<dependsOn>
<valueSetProvider>
<filterAttribute>
</valueSetProvider>
</attributeDefinition>
<configuration>
<valueSetProviders>
<valueSetProvider>
<filterMap>
<value>
<literal>
<literal>
</value>
<value>
<literal>
<literal>
</value>
<value>
<literal>
<literal>
</value>
<value>
<literal>
<literal>
</value>
</filterMap>
</valueSetProvider>
<customAttributes>
<customAttribute>
<customAttribute>
<customAttribute>
</customAttributes>
<attributeDefinitions>
<attributeDefinition>
dependsOn id="com.ibm.workitem.attribute.custom.tier"/>
<valueSetProvider>
<filterAttribute>
</valueSetProvider>
</attributeDefinition>
<section>
<presentation
<presentation>
<presentation>
<enumeration>
<literal>
<literal>
<literal>
<literal>
</enumeration>
<enumeration>
<literal>
<literal>
<literal>
<literal>
<literal>
<literal>
<literal>
<literal>
</enumeration>
7 answers
![](http://jazz.net/_images/myphoto/a8dc64fd9a76365e6c69afd2c5389c87.jpg)
I hope this is visible this time:
<attributeDefinition id="suggestedPriority" name="Suggested Priority" type="priority">
<dependsOn id="com.ibm.team.workitem.attribute.severity"/>
<valueSetProvider providerId="suggestedPriority">
<filterAttribute id="internalSeverity"/>
</valueSetProvider>
</attributeDefinition>
![](http://jazz.net/_images/myphoto/a8dc64fd9a76365e6c69afd2c5389c87.jpg)
<configuration-data xmlns="http://com.ibm.team.workitem/providers" id="com.ibm.team.workitem.configuration.providers">
<valueSetProviders>
<valueSetProvider id="subsystemProvider" name="Subsystem Provider" providerId="com.ibm.team.workitem.common.internal.attributeValueSetProviders.FilteredValueSetProvider">
<filterMap dependentEnumeration="subsystem" sourceEnumeration="tier">
<value content="tier.literal.11">
<literal id="subsystem.literal.l1"/>
<literalid="subsystem.literal.12"/>
</value>
<value content="tier.literal.16">
<literal id="subsystem.literal.13"/>
<literal id="subsystem.literal.14"/>
</value>
<value content="tier.literal.14">
<literal id="subsystem.literal.15"/>
<literal id="subsystem.literal.16"/>
</value>
<value content="tier.literal.15">
<literal id="subsystem.literal.17"/>
<literal id="subsystem.literal.18"/>
</value>
</filterMap>
</valueSetProvider>
<customAttributes category="com.ibm.team.workitem.workItemType">
<customAttribute id="com.ibm.workitem.attribute.custom.subsystem" name="Subsystem" type="subsystem"/>
<customAttribute id="com.ibm.workitem.attribute.custom.tier" name="Tier" type="tier"/>
<customAttribute id="subsystemProvider" name="Subsystem Provider" type="subsystem"/>
<attributeDefinitions>
<attributeDefinition id="com.ibm.workitem.attribute.custom.subsystem" name="Subsystem" type="subsystem">
<dependsOn id="com.ibm.workitem.attribute.custom.tier"/>
<valueSetProvider providerId="subsystemProvider">
<filterAttribute id="com.ibm.workitem.attribute.custom.tier"/>
</valueSetProvider>
</attributeDefinition>
<section id="com.ibm.team.workitem.section.details">
<presentation attributeId="com.ibm.workitem.attribute.custom.tier" kind="com.ibm.team.workitem.kind.enumeration" label="Tier"/>
<presentation attributeId="subsystemProvider" kind="com.ibm.team.workitem.kind.enumeration" label="Subsystem"/>
<enumeration attributeTypeId="tier">
<literal id="tier.literal.l1" name="AIX Operating_System"/>
<literal id="tier.literal.l6" name="Blades_SystemX Hardware"/>
<literal id="tier.literal.l4" name="ip Firmware"/>
<literal id="tier.literal.l5" name="Systemi Operating_System"/>
</enumeration>
<enumeration attributeTypeId="subsystem">
<literal id="subsystem.literal.l3" name="Athena"/>
<literal id="subsystem.literal.l4" name="Bluecube"/>
<literal id="subsystem.literal.l1" name="Bringup"/>
<literal id="subsystem.literal.l2" name="Commands"/>
<literal id="subsystem.literal.l5" name="hmc_ip"/>
<literal id="subsystem.literal.l6" name="phyp"/>
<literal id="subsystem.literal.l7" name="slic"/>
<literal id="subsystem.literal.l8" name="xpf"/>
</enumeration>
![](http://jazz.net/_images/myphoto/a8dc64fd9a76365e6c69afd2c5389c87.jpg)
I downloaded the Process Template.zip from https://jazz.net/wiki/bin/view/Main/AttributeValueProviders#Provider_Configuration. I modeled my new project after this one, but the filtering doesn't work.
I looked for your filter, "internalSeverity", and couldn't find it anywhere in the xml process configuration, the Enumerations, or the Types and Attributes. Where is "internalSeverity" defined?
My implementation is below. Hope you can help.
<attributeDefinition>
<dependsOn>
<valueSetProvider>
<filterAttribute>
</valueSetProvider>
</attributeDefinition>
<configuration>
<valueSetProviders>
<valueSetProvider>
<filterMap>
<value>
<literal>
<literal>
</value>
<value>
<literal>
<literal>
</value>
<value>
<literal>
<literal>
</value>
<value>
<literal>
<literal>
</value>
</filterMap>
</valueSetProvider>
<customAttributes>
<customAttribute>
<customAttribute>
<customAttribute>
</customAttributes>
<attributeDefinitions>
<attributeDefinition>
dependsOn id="com.ibm.workitem.attribute.custom.tier"/>
<valueSetProvider>
<filterAttribute>
</valueSetProvider>
</attributeDefinition>
<section>
<presentation
<presentation>
<presentation>
<enumeration>
<literal>
<literal>
<literal>
<literal>
</enumeration>
<enumeration>
<literal>
<literal>
<literal>
<literal>
<literal>
<literal>
<literal>
<literal>
</enumeration>
At least tell me where "internalSeverity" is defined in your Process Template.zip from https://jazz.net/wiki/bin/view/Main/AttributeValueProviders#Provider_Configuration.
![](http://jazz.net/_images/myphoto/a8dc64fd9a76365e6c69afd2c5389c87.jpg)
On 6/14/10 11:22 PM, tompkind wrote:
Custom attribute identifiers can be found in the process spec itself.
For built-in attributes, the identifiers don't appear in the process
spec. If you need to reference a built-in attribute, you can take a look
at e.g. com.ibm.team.workitem.common.model.IWorkItem.SEVERITY_PROPERTY
or better:
com.ibm.team.workitem.common.internal.model.WorkItemAttributes
Please note that the Wiki page refers to the preliminary, early-adopter
implementation from 2.0.0.2. In 3.0, you can create dependent
enumerations in the UI without resorting to the XML process spec.
--
Regards,
Patrick
Jazz Work Item Team
Please identify where "internalSeverity" is defined in your
Process Template.zip from
https://jazz.net/wiki/bin/view/Main/AttributeValueProviders#Provider_Configuration.
Custom attribute identifiers can be found in the process spec itself.
For built-in attributes, the identifiers don't appear in the process
spec. If you need to reference a built-in attribute, you can take a look
at e.g. com.ibm.team.workitem.common.model.IWorkItem.SEVERITY_PROPERTY
or better:
com.ibm.team.workitem.common.internal.model.WorkItemAttributes
Please note that the Wiki page refers to the preliminary, early-adopter
implementation from 2.0.0.2. In 3.0, you can create dependent
enumerations in the UI without resorting to the XML process spec.
--
Regards,
Patrick
Jazz Work Item Team
![](http://jazz.net/_images/myphoto/a8dc64fd9a76365e6c69afd2c5389c87.jpg)
On 6/14/10 11:22 PM, tompkind wrote:
Please identify where "internalSeverity" is defined in your
Process Template.zip from
https://jazz.net/wiki/bin/view/Main/AttributeValueProviders#Provider_Configuration.
Custom attribute identifiers can be found in the process spec itself.
For built-in attributes, the identifiers don't appear in the process
spec. If you need to reference a built-in attribute, you can take a look
at e.g. com.ibm.team.workitem.common.model.IWorkItem.SEVERITY_PROPERTY
or better:
com.ibm.team.workitem.common.internal.model.WorkItemAttributes
Please note that the Wiki page refers to the preliminary, early-adopter
implementation from 2.0.0.2. In 3.0, you can create dependent
enumerations in the UI without resorting to the XML process spec.
--
Regards,
Patrick
Jazz Work Item Team
Hi
Does anyone know where I could find an example of how to implement a defaultValueProvider for a built in attribute. As the definitions for the built in attributes does not appear in the Process Configuration Source, I am unsure how to do it.
Thanks
Rob