Class: JIRA::CustomFieldValue
- Inherits:
-
DynamicEntity
- Object
- Entity
- DynamicEntity
- JIRA::CustomFieldValue
- Defined in:
- lib/jiraSOAP/entities/custom_field_value.rb
Overview
TODO:
See if @key is always nil from the server, maybe we can remove it
Note:
There are no API methods that directly create objects of this class, they are only created as an attribute of Issue objects.
Represents an instance of a custom field (with values).
Instance Method Summary collapse
- #id ⇒ String
-
#initialize(custom_field_id = nil, *custom_values) ⇒ CustomFieldValue
constructor
You can optionally initialize a custom field value with new.
-
#key ⇒ String
Used with cascading select fields.
-
#soapify_for(msg, label = 'customFieldValues') ⇒ Handsoap::XmlMason::Element
Generate a SOAP message fragment for the object.
- #values ⇒ Array<String>
Methods inherited from Entity
add_attribute, inherited, #initialize_with_xml, new_with_xml
Constructor Details
#initialize(custom_field_id = nil, *custom_values) ⇒ CustomFieldValue
You can optionally initialize a custom field value with new
22 23 24 25 |
# File 'lib/jiraSOAP/entities/custom_field_value.rb', line 22 def initialize custom_field_id = nil, *custom_values @id = custom_field_id @values = custom_values end |
Instance Method Details
#id ⇒ String
10 |
# File 'lib/jiraSOAP/entities/custom_field_value.rb', line 10 add_attribute :id, 'customfieldId', :content |
#key ⇒ String
Returns Used with cascading select fields.
13 |
# File 'lib/jiraSOAP/entities/custom_field_value.rb', line 13 add_attribute :key, 'key', :content |
#soapify_for(msg, label = 'customFieldValues') ⇒ Handsoap::XmlMason::Element
Generate a SOAP message fragment for the object.
33 34 35 36 37 38 39 |
# File 'lib/jiraSOAP/entities/custom_field_value.rb', line 33 def soapify_for msg, label = 'customFieldValues' msg.add label do |submsg| submsg.add 'customfieldId', @id submsg.add 'key', @key submsg.add_simple_array 'values', @values end end |
#values ⇒ Array<String>
16 |
# File 'lib/jiraSOAP/entities/custom_field_value.rb', line 16 add_attribute :values, 'values', :contents_of_children |