Step 6: Execute the Delete Operation on all the Task, Test, Story, Epic, and Scope Assets

Now that are Assets are back in action, we can execute the Delete Operation on them, and also on their containing Epic and Scope.

Before

As you saw above, all the Story, Task, and Test assets are visible in the List View of your TeamRoom. But, since we are about to delete the Epics and even the Scope, let's also look in the Portfolio Tree. First we notice in our Project Tree, we have the My New Project nested under System (All Projects):

image

And, beneath that, we can see the three Epics and the Stories they contain:

image

Now, let's make all that go away!

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=\''Task\'',\''Test\''"
    ],
    "execute": "Delete"
  },
  {
    "from": "Story",
    "execute": "Delete"
  },
  {
    "from": "Epic",
    "execute": "Delete"
  },
  {
    "from": "Scope",
    "filter": [
      "ID!=\''Scope:0\''"
    ],
    "execute": "Delete"
  }  
]' \
 '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=\''Task\'',\''Test\''
execute: Delete
---
from: Story
execute: Delete
---
from: Epic
execute: Delete
---
from: Scope
filter:
- ID!=\''Scope:0\''
execute: Delete' \
 'http://localhost/VersionOne.Web/api/asset'

After

Now, everything should be gone from the Portfolio Tree (and your TeamRoom as well)!

image

results matching ""

    No results matching ""