Re: Querying REST API to get Issues and Associated Defects

284 views
Skip to first unread message

ibuchanan

unread,
Mar 14, 2013, 6:21:15 PM3/14/13
to version...@googlegroups.com
David,

In the current REST API, you can't really get two asset types at once. But here are some tips to query for each in such a way that you can "stitch them together" on the client side.

First, you query for Issues asking for the attributes you want (with "sel") and for the filtered subset you want (with "where").

Next, you do a similar query on Defects:

In this query pay particular attention to sel=Issues.Number so that you can join up to the Issues. And to where=Issues which brings back only Defects which have at least 1 Issue relationship. And to the filter [AssetState='Active'] which corresponds to the where clause of the first query and makes sure you only get Defects for Issues that meet the same criteria.

In a release coming soon, we plan to have a mechanism for fetching the graph of assets in one API call. Stay tuned!

Yours truly,
Ian Buchanan
Product Manager for Platform and Integrations


On Thursday, March 14, 2013 2:03:16 PM UTC-4, dloring wrote:
Can anyone please help me construct a REST query that will display all issues along with their spawned defects, or conversely, all defects that were generated from a parent issue?
 
Thanks,
david.

Roy, Remi

unread,
Mar 18, 2013, 1:42:30 PM3/18/13
to version...@googlegroups.com

Hi Everyone,

 

I use V1 (Fall 2011). I want to share a link to a specific project.

 

How I can obtain this link?

 

I tried this but is not working.

Ex : http://v1instance/Default.aspx?menu=PrimaryBacklogPage&projects=Scope:268276

 

 

Someone can help me?

 

Best Regards,

 

Remi Roy

TD Assurance réfère collectivement à toutes les entités et activités Canadiennes d'assurance des particuliers au sein de TDBFG.
TD Insurance refers collectively to all of the Canadian personal lines insurance entities and activities within TDBFG.
-------------------------------------------------

AVIS DE CONFIDENTIALITE. Ce courriel, ainsi que tout renseignement ci-inclus, destiné uniquement au(x) destinataire(s) susmentionné(s), est confidentiel. Si vous n'êtes pas le destinataire prévu ou un agent responsable de la livraison de ce courriel, tout examen, divulgation, copie, impression, reproduction, distribution ou autre utilisation de toute partie de ce courriel est strictement interdit de même que toute action ou manquement à l'égard de celui-ci. Si vous avez reçu ce message par erreur ou sans autorisation, veuillez en aviser immédiatement l'expéditeur par retour de courriel ou par un autre moyen et supprimez immédiatement et entièrement cette communication de tout système électronique.

NOTICE OF CONFIDENTIALITY. This communication, including any information transmitted with it, is intended only for the use of the addressee(s) and is confidential. If you are not an intended recipient or responsible for delivering the message to an intended recipient, any review, disclosure, conversion to hard copy, dissemination, reproduction or other use of any part of this communication is strictly prohibited, as is the taking or omitting of any action in reliance upon this communication. If you received this communication in error or without authorization please notify us immediately by return e-mail or otherwise and permanently delete the entire communication from any computer, disk drive, or other storage medium.

Ian Buchanan

unread,
Mar 18, 2013, 2:10:48 PM3/18/13
to version...@googlegroups.com

--
You received this message because you are subscribed to the Google Groups "VersionOne-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to versionone-de...@googlegroups.com.
To post to this group, send email to version...@googlegroups.com.
Visit this group at http://groups.google.com/group/versionone-dev?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Roy, Remi

unread,
Mar 18, 2013, 2:12:22 PM3/18/13
to version...@googlegroups.com

Hi Ian, it’s not what I want. I found my solution.

 

It is : http://v1instance/Default.aspx?menu=PrimaryBacklogPage&PrimaryScopeContext=Scope:268276

 

 

Thank you

Rémi Roy ing.jr I Scrum Master, Direct Channels Technology Solutions I TD Bank Group
T: 514-850-8223
remi...@tdassurance.com

Educate. Collaborate. Iterate. Visit the TD Agile CoP! | Éduquer. Collaborer. Itérer. Visitez la CdP Agile TD!

Reply all
Reply to author
Forward
0 new messages