Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

Multi condition in oslc.where is returing 400 error While querying RTC with the OSLC REST by the work item creator

 https://jazz...com:<port>/jazz/oslc/contexts/<Project Area>/workitems?oslc.select=dcterms:subject,dcterms:creator&oslc.where=dcterms:created=%222017-07-21T09:15:53.377Z%22%20and%20dcterms:creator=%22susan%40in.ss.com%22



{
"oslc:message": "Illegal argument 'Created By': susan@in.ss.com",
"oslc:statusCode": 400,
"prefixes": {
}
}
This problem is coming only after adding the additional condition ">>>>>>>>>%20and%20dcterms:creator=%22susan%40in.ss.com%22
<<<<<<<<<<<<<<<<<<<<< But I want this, for additional filtering.
Any help is much appreciated. Thanks very much in advance.  

0 votes



2 answers

Permanent link

The value of the OSLC property dcterms:creator (attribute "Created By") has to be in the form of a resource URI, such as "https://clm.example.com/jts/users/wasadmin".

0 votes

Comments

 Hi Donald Nong, can you share as to how we can filter the work items by UserID or Mail id ??

The URL is exactly the same as yours but with a different value for the user. So you will first need to find out the user resource URI for "susan" - let's say it's "https://jazz.com/jazz/users/susan". Then you append the user to "dcterms:creator=". The error that you previously got basically says you specified an invalid user value.


Permanent link

 Thanks much Donald Nong.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details

Question asked: Jul 25 '17, 1:01 p.m.

Question was seen: 2,516 times

Last updated: Jul 26 '17, 10:31 p.m.

Confirmation Cancel Confirm