Invalid Value of Attribute
Invalid Value of attribute error despite that attribute doesn't present in that work item
|
Accepted answer
Ralph Schoon (63.5k●3●36●46)
| answered Apr 02 '14, 4:11 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
For the Attribute Validation Precondition, it would be necessary to configure a validator. See https://jazz.net/wiki/bin/view/Main/AttributeCustomization#Validators or https://jazz.net/library/article/1093 Lab 4/Lab 5 for how that works.
So I have to assume there is a validator configured for the attribute. If that is the case, it will work across all work item types. It will also work always, independent from if the attribute has a presentation or not. By adding the attribute to a type this attribute is available and if a validator is configured the precondition would check. Since you don't talk about the attribute type, I can't say more, however, you could try to add a default value provider to the attribute. I find it puzzling that you add attributes without presentation. What is the reason behind having attributes that are not displayed? What types and values would they have? Abhinav Mishra selected this answer as the correct answer
Comments Thanks Ralph for your quick response.
1
This sounds odd. For one thing, enumerations have a default value - at least I can not save an enumeration without a default.
Abhinav Mishra
commented Apr 02 '14, 5:07 a.m.
Yes Ralph,
1
Ralph Schoon
commented Apr 02 '14, 5:27 a.m.
| edited Apr 02 '14, 5:28 a.m.
FORUM ADMINISTRATOR / FORUM MODERATOR / JAZZ DEVELOPER
I said remove the attribute from the work item type, not remove the work item type.
|
One other answer
Yes Ralph, "Unassigned" is a valid value of that enumeration. I am also wondering why its happening...??
Earlier with version 4.0.0 of RTC its working fine but with version 4.0.3 I am facing this issue. If removal of those attribute would be probable solution for now..?? |
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.
Comments
You might want to put a little bit more effort into the description of your question, if you hope for an answer.
Weather the work item presents that attribute or not, an attribute could be available, I think. E.g. if one changed the type. Attribute validation for example works on the attribute and independent from the work item type. So, if the validation finds an issue it would show, even if there is no attribute presentation for the attribute. You should be able to see the attribute in a query column, in this case.
Thanks Ralph for getting back.....
Scenario is that I have created a work item with name "Task" and added custom attributes.Among all of them
say attribute with name "X" and attribute with name "Y" .And Attribute "Y" has dependency on attribute "X".
But while adding attributes to editor presentation of work item, none of the above attribute with name "X" & "Y" are added.
So in detail view of work item, its not showing those attributes("X" & "Y").
We have opted for "Attribute Validation" Precondition.
Now While trying to save the work item it shows me invalid Value of attribute "Y" .