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

RTC custom attribute of Integer type

We have added a custom workitem attribute of type "Integer" to one of our workitem types. What we have observed is that the attribute's value gets defaulted to "0", which we do not want.

Is there a way we can default it to null or any other value by changing in the process template?

Regards,
Meghana

1

1 vote

Comments

Does anyone know if an enhancement has been filed for this?  I could not find one.  Not being able to default custom integer values to "null" is a real problem for required attributes.  We are defaulting to "-1", since "0" could be a valid value, but that is ugly and has to be filtered out of our reports.  Fortunately, we have Insight, so we can do this in the Framework.

Consider to add a condition that returns false for -1 and add a required attribute for condition operational behavior so that you prevent saving the -1.



2 answers

Permanent link
I don't think it's going to work this way, as "null" is not a valid integer value. I would suggest using a String type instead with a validator to make sure the string represents an integer.

1 vote

Comments

Yes, for types like integer the default is a valid 0. and not a non existent object null. The same applies for Boolean as far as I can tell.


Permanent link
Hi Meghana,

We're having same trouble. Any solution?

Thanks.

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

Question asked: Sep 27 '11, 2:09 a.m.

Question was seen: 4,600 times

Last updated: Nov 20 '15, 5:05 a.m.

Confirmation Cancel Confirm