|
100 | 100 | <li class="toctree-l1"><a class="reference internal" href="#rally">Rally</a><ul> |
101 | 101 | <li class="toctree-l2"><a class="reference internal" href="#core-rest-methods-and-crud-aliases">Core REST methods and CRUD aliases</a></li> |
102 | 102 | <li class="toctree-l2"><a class="reference internal" href="#pyral-rally-instance-convenience-methods">pyral.Rally instance convenience methods</a></li> |
| 103 | +<li class="toctree-l2"><a class="reference internal" href="#pyral-rally-experimental-convenience-methods">pyral.Rally experimental convenience methods</a></li> |
103 | 104 | </ul> |
104 | 105 | </li> |
105 | 106 | <li class="toctree-l1"><a class="reference internal" href="#rallyrestresponse">RallyRESTResponse</a></li> |
@@ -451,6 +452,9 @@ <h1>Rally<a class="headerlink" href="#rally" title="Permalink to this headline"> |
451 | 452 | </dd> |
452 | 453 | </dl> |
453 | 454 | <p>either in this specific order or as keyword arguments.</p> |
| 455 | +<p>You must either have default workspace and project values set up for your account |
| 456 | +OR |
| 457 | +you must provide workspace and project values that are valid and accessible for your account.</p> |
454 | 458 | <dl class="docutils"> |
455 | 459 | <dt>You can optionally specify the following as keyword arguments:</dt> |
456 | 460 | <dd><ul class="first last"> |
@@ -491,7 +495,7 @@ <h1>Rally<a class="headerlink" href="#rally" title="Permalink to this headline"> |
491 | 495 | Using isolated_workspace=True provides performance benefits for a subscription |
492 | 496 | with many workspaces, but it also means you cannot change the workspace you |
493 | 497 | are working within a single instance of a Rally class, nor can you provide |
494 | | -a workspace keyword argument to a get, create, update or delete methods that |
| 498 | +a workspace keyword argument to the get, create, update or delete methods that |
495 | 499 | differs from the workspace identified at instantiation time. |
496 | 500 | For subscriptions with a small to moderate number of workspaces (up to a few dozen), |
497 | 501 | the performance savings will be relatively minor when using isolated_workspace=True |
@@ -905,6 +909,45 @@ <h2>pyral.Rally instance convenience methods<a class="headerlink" href="#pyral-r |
905 | 909 | that the target_artifact exists in.</p> |
906 | 910 | </dd></dl> |
907 | 911 |
|
| 912 | +</div> |
| 913 | +<div class="section" id="pyral-rally-experimental-convenience-methods"> |
| 914 | +<h2>pyral.Rally experimental convenience methods<a class="headerlink" href="#pyral-rally-experimental-convenience-methods" title="Permalink to this headline">¶</a></h2> |
| 915 | +<dl class="method"> |
| 916 | +<dt id="addCollectionItems"> |
| 917 | +<code class="descname">addCollectionItems</code><span class="sig-paren">(</span><em>target_item</em>, <em>collection_items</em><span class="sig-paren">)</span><a class="headerlink" href="#addCollectionItems" title="Permalink to this definition">¶</a></dt> |
| 918 | +<dd><p>Given a target_item and a homogenous list of items whose type appears as a One to Many relationship |
| 919 | +in the target item, add the collection_items to the corresponding attribute in the target_item.</p> |
| 920 | +</dd></dl> |
| 921 | + |
| 922 | +<div class="highlight-default"><div class="highlight"><pre><span></span><span class="o">...</span> |
| 923 | +<span class="n">milestones</span> <span class="o">=</span> <span class="p">[</span><span class="n">milestone_1</span><span class="p">,</span> <span class="n">milestone_2</span><span class="p">,</span> <span class="n">milestone_3</span><span class="p">]</span> |
| 924 | +<span class="n">story</span> <span class="o">=</span> <span class="n">rally</span><span class="o">.</span><span class="n">get</span><span class="p">(</span><span class="s1">'story'</span><span class="p">,</span> <span class="s1">'US123'</span><span class="p">)</span> |
| 925 | +<span class="n">rally</span><span class="o">.</span><span class="n">addCollectionItems</span><span class="p">(</span><span class="n">story</span><span class="p">,</span> <span class="n">milestones</span><span class="p">)</span> |
| 926 | +</pre></div> |
| 927 | +</div> |
| 928 | +<div class="admonition warning"> |
| 929 | +<p class="first admonition-title">Warning</p> |
| 930 | +<p class="last">This method only works when the collection attribute on the target_item is Modifiable. |
| 931 | +Consult the AgileCentral WSAPI documentation for the target_item attributes to see whether |
| 932 | +the attribute of interest has a notation of ‘Collection Modifiable yes’. If there is no |
| 933 | +‘Colletion Modifiable’ notation or the value for that is ‘no’, then use of this method |
| 934 | +should not be attempted. |
| 935 | +At this time, the AgileCentral WSAPI schema endpoint does not include information about |
| 936 | +‘Collection Modifiable’ for any of the attributes, you’ll have to consult the documentation.</p> |
| 937 | +</div> |
| 938 | +<dl class="method"> |
| 939 | +<dt id="dropCollectionItems"> |
| 940 | +<code class="descname">dropCollectionItems</code><span class="sig-paren">(</span><em>target_item</em>, <em>collection_items</em><span class="sig-paren">)</span><a class="headerlink" href="#dropCollectionItems" title="Permalink to this definition">¶</a></dt> |
| 941 | +<dd><p>Given a target_item and a homogenous list of items whose type appears as a One to Many relationship |
| 942 | +in the target item, delete the collection_items to the corresponding attribute in the target_item |
| 943 | +from the current collection contents for the target_item.</p> |
| 944 | +</dd></dl> |
| 945 | + |
| 946 | +<div class="admonition warning"> |
| 947 | +<p class="first admonition-title">Warning</p> |
| 948 | +<p class="last">See note above for the ‘addCollectionItems’ method. The restrictions there are also applicable |
| 949 | +to this method.</p> |
| 950 | +</div> |
908 | 951 | </div> |
909 | 952 | </div> |
910 | 953 | <div class="section" id="rallyrestresponse"> |
|
0 commit comments