Custom Fields for Primary Workitems

41 views
Skip to first unread message

FredL...@gmail.com

unread,
Aug 15, 2008, 1:17:25 PM8/15/08
to VersionOne-users
Something similar to this was posted before, but no solution was
found.

There should be a way in VersionOne to add the exact same custom field
to Defects and Stories.

Here is what I mean:

I created a list type called "Custom_Release". Then I added a
dropdown to Stories using this list type, and did the same for
defects.

The field for stories is called Custom_Release, and for defects it is
called Custom_Release2.

I can combine these into a single column, but I cannot filter
collectively by them.

i.e. If I filter for Custom_Release == X and Custom_Release2 == X, I
get nothing because the field Custom_Release2 does not exist in
stories and vice versa. I can include "None", and get all the items I
want, but I also get items with no assigned value.

Is there any way around this? Could this be included in a future
release?

PS. Another possible solution would be an option in the filter to
include items lacking the field, but not items that have the field and
no selected value.

luanne...@versionone.com

unread,
Aug 18, 2008, 11:13:34 AM8/18/08
to VersionOne-users, Sup...@versionone.com
At this time there is no workaround. I will submit this request to
the product team for review.

-Luanne

Maggie Bullington

unread,
Dec 15, 2008, 1:22:28 PM12/15/08
to versiono...@googlegroups.com, version...@googlegroups.com
Hi-
Someone recently asked a question about this post, and I wanted to clarify that there is in fact a workaround to searching on custom fields from two different assets at the same time. Here is an example that finds Stories and Defects. Stories have a custom field called Custom_MyField2, and Defects have a custom field called Custom_MyField. The value 'Find Me' is contained in one Story and one Defect in these fields. This query will find both (***tested on VersionOne 8.3***):

http://servername/v1instance/rest-1.v1/Data/PrimaryWorkitem?where=Defect.Custom_MyField='Find%20Me'|Story.Custom_MyField2='Find%20Me'&sel=Name,Defect.Custom_MyField,Story.Custom_MyField2

The key here is qualifying the type on the attributes you are searching for. That is why both custom field names are prefixed with either Story. or Defect., and notice that I use an 'or' vertical pipe | in the where clause.

The APIClients may not build the search strings this way - I haven't tested that. But at the least you should be able to get the raw results back as xml by sending this url to the V1APIConnector object (again, this only applies if you are trying to do this query using the API/SDK).

-Maggie
Reply all
Reply to author
Forward
0 new messages