You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi Mike - I think this might be worth some other convenience methods, but for now wanted to note a way to get at the Required attribute on a field as an example:
fields = @rally.get_fields_for("defect")
puts "values -#{fields["State"].rally_object.keys}" #gives you the list of attributes on the field like Required / Custom / Hidden
puts "state is required : #{fields["State"]["Required"]}"
puts "description is required : #{fields["Description"]["Required"]}"
This required knowing what is coming back from Rally's wsapi for the read on the Defect TypeDefinition. The get_fields_for method returns a hash where the key is the field's DisplayName in Rally and the specific attribute def as the field is the value.
A method I would think of adding is something like get_required_fields_for("type") or something like that.
It would be useful to have a convenience method for an artifact to disclose its Field-specific attribute definitions, especially for 'Required'.
The text was updated successfully, but these errors were encountered: