Step 5: Execute the Reactivate Operation on all the Story, Task, and Test Assets (in prep for Delete)

Now that we have done everything we want with our Stories and related Assets, it's time to execute the Delete Operation on them. Well, not yet. We cannot call Delete on closed items, so we will first execute the Reactivate Operation on them, just like we did before when executing QuickClose.

Before

Your Storyboard should be empty in your TeamRoom, and you should see the Stories in the Closed panel:

image

Command

From your bash shell, run this:

curl -i -X POST \
   -H "Content-Type:application/json" \
   -H "Authorization:Basic YWRtaW46YWRtaW4=" \
   -d \
'{
  "from": "Workitem",
  "filter": [
    "AssetType=\''Story\'',\''Task\'',\''Test\''"
  ],
  "execute": "Reactivate"
}' \
 'http://localhost/VersionOne.Web/api/asset'

Or, if you prefer YAML, run this:

curl -i -X POST \
   -H "Content-Type:text/yaml" \
   -H "Authorization:Basic YWRtaW46YWRtaW4=" \
   -d \
'from: Workitem
filter:
- AssetType=\''Story\'',\''Task\'',\''Test\''
execute: Reactivate' \
 'http://localhost/VersionOne.Web/api/asset'

After

The best place to see everything is in the List View panel. If you expand all, you should see all the Stories and their child Task and Test Assets are back in the game:

image

results matching ""

    No results matching ""