Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Relationship between goals and stories via REST
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jerry Vasend  
View profile  
 More options May 9 2012, 2:48 pm
From: Jerry Vasend <gvas...@gmail.com>
Date: Wed, 9 May 2012 11:48:46 -0700 (PDT)
Local: Wed, May 9 2012 2:48 pm
Subject: Relationship between goals and stories via REST
I am retrieving V1 goals and stories via REST. I have both goals and
stories defined with at least some of the stories assigned to at least
one goal. However, when I look at the data extracted, I do not see any
data that would link the stories to the goals. I have googled this and
nothing obvious came up. How can I relate goals to stories based on
data retrieved via REST? I am using ultimate edition from 2011.

Thanks!

Jerry


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
ibuchanan  
View profile  
 More options May 9 2012, 3:58 pm
From: ibuchanan <ian.bucha...@versionone.com>
Date: Wed, 9 May 2012 12:58:18 -0700 (PDT)
Local: Wed, May 9 2012 3:58 pm
Subject: Re: Relationship between goals and stories via REST

Jerry,

There are a few places where things may be confusing. I've posted some
examples below which anyone can run using the admin/admin credentials.

From the Story side, we can see the relationship to Goals using the meta
API:
https://www14.v1host.com/v1sdktesting/meta.v1/Story?xsl=api.xsl

From the Goals side, the relationship is a little less clear:
https://www14.v1host.com/v1sdktesting/meta.v1/Story?xsl=api.xsl

You would have to know the hierarchy of assets: Story is a subtype of
PrimaryWorkitem is a subtype of Workitem

Now armed with the knowledge that it's there, we need to know how to ask
for it -- the default query does not return all attributes and
relationships. So you need to use the "sel=" parameter.

From the Story side, we can ask like this:
https://www14.v1host.com/v1sdktesting/rest-1.v1/Data/Story?sel=Name,N...
(Note: the above query uses the page parameter to make the results come
back quick for testing. You may not want to use paging for your end
purposes but it's a good idea when testing. Also, the stories in the above
result set may not be linked to Goals but you will still see a Goal
relation in the XML.)

From the Goal side, things are again a little more tricky. If we only care
about the Stories linked with Goals, we need to downcast. So we can ask
like this:
https://www14.v1host.com/v1sdktesting/rest-1.v1/Data/Goal?sel=Name,Nu...

Yours truly,
Ian Buchanan
Product Manager for Platform and Integrations


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »