Jazz Register Log in
Jazz Forum Welcome to the Jazz Community Forum

Welcome to the Jazz Community Forum

Connect and collaborate with IBM Engineering experts and users

Creating a Multi Select List on Work Items

I need to present a multi-select list and I found one on the Editor Presentation, however it does not show on the actual Defect.

Custom Attribute - Change_Type
Attribute Type - Enumeration

Add Presentation -
ID - ""
Kind - Multi-Select List
Attribute - Change_Type

The field never appears on the Work Item form. If I change the Kind - Enumeration is works fine.

I have a static list the needs to be displayed and multiple entries can be selected. I am open to any suggestion to make that work

0 votes



6 answers

Permanent link
Hi
As attribute type you have to use smallString or mediumString or String. Then, when configuring the presentation, you configure it to show up as Multi-Select List or Checkbox List presentation and add a property with key 'enumeration' and value the id of your enumeration.

References: Work Item Editor Presentations article: http://jazz.net/library/article/130

Be aware that the underlying enumeration is only available to the work item editor. Creating a query for that attribute is then more difficult.

Regards

Marcel
Jazz Work Item team

1 vote


Permanent link
Hi
As attribute type you have to use smallString or mediumString or String. Then, when configuring the presentation, you configure it to show up as Multi-Select List or Checkbox List presentation and add a property with key 'enumeration' and value the id of your enumeration.

References: Work Item Editor Presentations article: http://jazz.net/library/article/130

Be aware that the underlying enumeration is only available to the work item editor. Creating a query for that attribute is then more difficult.

Regards

Marcel
Jazz Work Item team


Thanks Marcel,

That is exactly the information that I needed.

Thanks,
Mat

0 votes

Comments

Be aware that the underlying enumeration is only available to the work item editor. Creating a query for that attribute is then more difficult.

How do you create a query for this type of custom attribute?

Yes, I have the same question as David...

Creating this Multi-Select Checkbox with String works in the presentation, however you cannot create a query based on the enumeration of that attribute. Anytime I've created a query it forces me to use "Full Text" which is a total drag since I had already taken the time to create the specific enumerations for that attribute.

How can we create a proper Multi-Select Checkbox in the presentation for attributes which can also be used in queries?? I really need to know how to accomplish this :))


Permanent link
You can still query the selected values. Since the attribute is of type String it expects to query using full text. However, you can change condition at the top of the box from "contains" to "exists" and leave the full text blank. This worked for me and remember it will display the IDs of the enumeration not the display values.

0 votes


Permanent link
If you define the text field as small or medium then you can use contains.. if long then only full text search..

second, to make this semi useful for your users, after creating the Enum, use the Process XML source view and change the generated enum ID values to known useful fixed strings (warning, IDs are project wide not workitem specific, so they will show everywhere)..

then you can build a query  Enum list contains Defect_Feature_A (a made up enum ID value)

Sam

0 votes


Permanent link
 Hi,

I have successfully added a check box in my custom workitem.

After selecting the checkbox and once saved, i want to uncheck the check box!

Is there anyway to achieve this?

0 votes


Permanent link
as far as I know, you cannot do this.   It would make the UI think there is a pending change.

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
× 369

Question asked: Jun 10 '09, 2:11 p.m.

Question was seen: 8,815 times

Last updated: Aug 17 '13, 11:10 a.m.

Confirmation Cancel Confirm