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

Attribute Value Providers

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>

0 votes



7 answers

Permanent link
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>

0 votes


Permanent link
<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>

0 votes


Permanent link
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.

0 votes


Permanent link
Please identify where "internalSeverity" is defined in your Process Template.zip from https://jazz.net/wiki/bin/view/Main/AttributeValueProviders#Provider_Configuration.

0 votes


Permanent link
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

0 votes


Permanent link
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

0 votes


Permanent link
If incase you are still looking for the answer, here is the page that can help you
https://jazz.net/wiki/bin/view/Main/AttributeValueProviders#Filtering_Enumeration_Value_Set
you will have to add it under <configuration>

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

Question asked: May 27 '10, 6:13 p.m.

Question was seen: 6,039 times

Last updated: May 27 '10, 6:13 p.m.

Confirmation Cancel Confirm