Skip to main content
System StatusContact Support
VersionOne Community

Exercise 8: Re-Open your Story

Overview

This tutorial will help you query the Story created in Exercise 4: Create your own Story (Backlog Item) within a Scope using the Rest API.

Prerequisites

  • Knowledge of the VersionOne API Console

  • Basic Knowledge of XML

What you'll learn

This exercise walks you through the process of closing of a Story using the Rest API.

Step 1: Recall the OID of the newly created story.

Recall the saved OID Story:1045 returned in the response from the output in Exercise 4: Create your own Story (Backlog Item) within a Scope and Exercise 5: Query your Story.

Step 2: Change URL and execute POST.

  1. Change your url to this: rest-1.v1/Data/Story/1045?op=Reactivate.

  2. Click Send.

This operation does not require a payload.

Step 3: Examine response. 

Here are some points of evidence indicating the reactivation of the story.

  • Response Body
    This XML below is returned after a successful closure. It returns the Story with a brand new Moment appended marking its change of state.

  • Query for the Story
    Run this query rest-1.v1/Data/Story/1045?sel=AssetState. The output indicates that the AssetState attribute of this Story is equal to 64, which means that it is open. If it were equal to 128, that would mean that the Story is closed.
     
  • Check in the Lifecycle Backlog
    Go to your backlog, and you will see My New Story (Story:1045) in the backlog. 

Review

  • Re-opened a Story using an OID.

Quiz

What two ways to find the Scope's OID did we explore?

Query in VersionOne UI
Query via Query.v1 endpoint
Query via Rest-1.v1
 
  • Was this article helpful?