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
Retrieving work items with custom attributes via REST was RE: How to retrieve Stories and Defects in one query using Java SDK
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
  3 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
 
Saxon, Will  
View profile  
 More options Apr 10 2012, 11:45 am
From: "Saxon, Will" <Will.Sa...@viterahealthcare.com>
Date: Tue, 10 Apr 2012 15:45:08 +0000
Local: Tues, Apr 10 2012 11:45 am
Subject: Retrieving work items with custom attributes via REST was RE: How to retrieve Stories and Defects in one query using Java SDK
Ian,

I'm aware of this, it's what we're doing right now. The question is whether we can get the custom fields for both Stories and Defects (and Primary Work Items) in one query.

So if I issue something like:

        $url/PrimaryWorkitem?sel=StandardProperty,Custom_Story1,Custom_Defect2&wher e=Custom_PWI_ExportFlag='yes'

Where Custom_Story1 is specific to Stories, Custom_Defect2 is specific to Defects and Custom_PWI_ExportFlag is specific to PrimaryWorkitems, I get an error. I have to do this instead:

        $url/PrimaryWorkitem?sel=StandardProperty&where=Custom_PWI_ExportFlag='yes'

Then for each item:

        $url/Story/$id?sel=Custom_Story1 (if it's a Story)
        $url/Defect/$id?sel=Custom_Defect1 (if it's a Defect)

Then combine the results from the original query with the individual results.

What I'm wondering is whether there is a way to issue 1 query for Workitem(s) and get it/them - with PWI- and Story- or Defect-specific custom fields - in one go.

Sorry to hijack this thread, I should have posted separately.

-Will

...

read more »


 
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 Apr 10 2012, 12:18 pm
From: ibuchanan <ian.bucha...@versionone.com>
Date: Tue, 10 Apr 2012 09:18:37 -0700 (PDT)
Local: Tues, Apr 10 2012 12:18 pm
Subject: Re: Retrieving work items with custom attributes via REST was RE: How to retrieve Stories and Defects in one query using Java SDK

Will,

It's not quite what you are doing. In my query, I had the Story and Defect
selectors in front of the attribute name. To apply the same concept to your
query (I bolded my change to try to make it more clear):
$url/PrimaryWorkitem?sel=StandardProperty,*Story.*Custom_Story1,*Defect.*
Custom_Defect2&where=Custom_PWI_ExportFlag='yes'

Let me know if that doesn't work for you.

Ian

...

read more »


 
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.
Saxon, Will  
View profile  
 More options Apr 10 2012, 1:58 pm
From: "Saxon, Will" <Will.Sa...@viterahealthcare.com>
Date: Tue, 10 Apr 2012 17:58:37 +0000
Local: Tues, Apr 10 2012 1:58 pm
Subject: RE: Retrieving work items with custom attributes via REST was RE: How to retrieve Stories and Defects in one query using Java SDK
This is exactly what I was looking for and seems to work fine. Thanks.

-Will

...

read more »


 
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 »