@@ -455,21 +455,6 @@ Core REST methods and CRUD aliases
455455
456456 Returns a boolean indication of the disposition of the attempt to delete the item.
457457
458- .. method :: search(keywords, \*\*kwargs)
459-
460- Given a list of keywords or a string with space separated words, issue
461- the relevant Rally WSAPI search request to find artifacts within the search
462- scope that have any of the keywords in any of the artifact's text fields.
463-
464- NOTE: The search functionality must be turned on for your subscription to use this method.
465-
466- keyword arguments:
467- - projectScopeUp = true/false (defaults to false)
468- - projectScopeDown = true/false (defaults to false)
469- - pagesize = n (defaults to 500)
470- - start = n (defaults to 1)
471- - limit = n (defaults to no limit)
472-
473458pyral.Rally instance convenience methods
474459----------------------------------------
475460
@@ -681,29 +666,57 @@ pyral.Rally instance convenience methods
681666pyral.Rally experimental convenience methods
682667--------------------------------------------
683668
684- .. method :: addCollectionItems(target_item, collection_items)
669+ .. method :: createMultiple(entity_name, items, fields=None, workspace='current', project='current', **kwargs)
670+
671+ Given an entityName (for a valid Rally entity type) and a sequence of items (described below) and
672+ potential a list of Rally entity attribute names, use the Rally WSAPI /batch endpoint
673+ to effect the creation of items corresponding to the elements in list.
674+ The elements in the list MUST have information about ALL of the required fields of the Rally entity.
675+ The elements CAN have information about non-required fields.
676+ An item in the list of items CANNOT have any attributes that are of the Rally COLLECTION type.
677+
678+ items must be all dict instances OR items must be all pyral entity instances (or instances of "data" class).
679+
680+ .. method :: updateMultiple(entityName, items, fields=None, workspace='current', project='current', **kwargs)
681+
682+ Given an entityName (for a valid Rally entity type) and a sequence of items (described below)
683+ and a list of Rally entity attribute names that are to be updated (fields),
684+ use the Rally WSAPI /batch endpoint to effect the update of items corresponding
685+ to the elements in list of items.
686+ Each item MUST contain an identifying attribute name and value (usually ObjectID is used).
687+ The other elements in the list CAN only be attributes that are editable AND
688+ an item in the list of elements CANNOT have any attributes that are of the Rally COLLECTION type.
689+ If the items have attributes present with non-null values and the attribute name is NOT
690+ in the fields list, then those attributes will not be updated via this mechanism.
685691
686- Given a target_item and a homogenous list of items whose type appears as a One to Many relationship
687- in the target item, add the collection_items to the corresponding attribute in the target_item.
692+ items can be all dict instances OR items can be all pyral entity instances (or instances of "data" class).
693+
694+ .. method :: addCollectionItems(target_item, collection_name, collection_items)
695+
696+ Given a target_item, the name of the Collections attribute and a homogenous list of items whose type
697+ appears as a One to Many relationship in the target item, add the collection_items to the corresponding
698+ attribute in the target_item.
699+
700+ Returns the updated target_item.
688701
689702::
690703
691704 ...
692705 milestones = [milestone_1, milestone_2, milestone_3]
693706 story = rally.get('story', 'US123')
694- rally.addCollectionItems(story, milestones)
707+ rally.addCollectionItems(story, 'Milestones', milestones)
695708
696709.. warning ::
697710
698711 This method only works when the collection attribute on the target_item is Modifiable.
699712 Consult the Rally WSAPI documentation for the target_item attributes to see whether
700713 the attribute of interest has a notation of 'Collection Modifiable yes'. If there is no
701- 'Colletion Modifiable' notation or the value for that is 'no', then use of this method
714+ 'Collection Modifiable' notation or the value for that is 'no', then use of this method
702715 should not be attempted.
703716 At this time, the Rally WSAPI schema endpoint does not include information about
704717 'Collection Modifiable' for any of the attributes, you'll have to consult the documentation.
705718
706- .. method :: dropCollectionItems(target_item, collection_items)
719+ .. method :: dropCollectionItems(target_item, collection_name, collection_items)
707720
708721 Given a target_item and a homogenous list of items whose type appears as a One to Many relationship
709722 in the target item, delete the collection_items to the corresponding attribute in the target_item
0 commit comments