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

Query requirements having set no value for (custom) attribute

Hello,

like the question summary already implies, I have a custom attribute defined for my requirements.
I would like to get all requirements that have set no value for this attribute in a requirement.
Therefor I build the following OSLC query:
.../rm/views?oslc.query=true&projectURL={project-area-url}&oslc.prefix=rp=<https://jazz.ps-office.local:9443/rm/types/>&oslc.select=*&oslc.where=rp:_J8gyoT8sEeSZxPPkdZ-lVg!=""

(The {project-area-url} is replaced for simplification. Each query parameter will be url-encoded for the request)

As you can see I check the custom attributes value if that is unequal to an empty string.

The issue:
Executing the query request returns all requirements containing even requirements having set the attribute value to empty string.

The question:
May I have defined the query incorrectly or does Doors NG behave not correctly?

Kind Regards

0 votes

Comments


That is the correct prefix of the above query parameter:

oslc.prefix=rp=<https: jazz.ps-office.local:9443/rm/types/>

(It gets somehow destroyed by the editor. Couldn't fix it right there )

Hi, which RDNG version are you using? best regards.

Sorry missing this, it's Doors NG 6.0.0.
I also have the configuration management enabled for this project. Thus I add the Configuration-Context header. But I think it should not relate to this issue, just mentioning.

I tested with RDNG 5.0.2 and could see similar results. If I set the sole "oslc.where" parameter to 'property=""', I got 0 result. But if I changed it to 'property!=""', I got all requirements in the project, including artifacts not having the property as well. RDNG definitely has some serious problems with the "!=" operator. I believe this is a defect.


Be the first one to answer this question!

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
× 12,019
× 516
× 139

Question asked: Nov 13 '15, 7:27 a.m.

Question was seen: 3,275 times

Last updated: Nov 15 '15, 7:30 p.m.

Confirmation Cancel Confirm