Permission error while trying to get test case list from ETM #17
Replies: 3 comments 2 replies
-
There seems to be a problem with opt-out (configuration management not enabled) projects -so if you can turn configuraiton managemennt on in the project or access a configuration-managed project then oslcquery should work. Will try to figure out what's wrong. |
Beta Was this translation helpful? Give feedback.
-
OK well there definitely was a problem accessing 7.0.2 opt-out ETM project. What version+ifix are you using? If using configurations (local, or GC) then unless you're accessing the default component and default stream you'll have to specify some more information in the command. For example to access the default stream (called 'comp2 Initial Stream') of component comp2 in a project called testetm:
Or to access a specific component comp2 and specific local configuration 'comp2 Initial Stream':
The above queries work for me, using user who is also a project member, and who has a license assigned which gives access to read from ETM. Note the project/component/configuration name are case-sensitive. If your user doesn't meet these requirements they won't be able to get results. If it still fails please can you share the text after 'traceback' printed when oslcquery exits, so I can see where things are going wrong - redact any details specific to you. For example I get this traceback when the project isn't accessible by the user: Traceback (most recent call last): |
Beta Was this translation helpful? Give feedback.
-
Happy to see you've figured out how to use the obfuscated credentials :-) I can't reproduce that problem at all. You haven't got two components or configurations in the component with the same name? Not sure what that will do. Your user definitely has access - i.e. not just a JazzAdmin, needs to be a member of the project. What authentication method does your server use - JAS, LDAP via JTS, ...? |
Beta Was this translation helpful? Give feedback.
-
Hello guys,
i was really happy to found this Python ELM client and immediately try to solve some of my issues.
Unfortunately now I am running into an error when ill trying some basic functionality with ETM .
Following commands i am trying to execute:
oslcquery -J "URL" -A qm -U "USER" -P "PASSWORD" -p "PROJECT" -s dcterms:title -O qmresults.csv
The error in the CMD is following:
requests.exceptions.HTTPError: 403 Client Error: Forbidden for url: https://xxx/qm/oslc_config/resources/com.ibm.team.vvc.Component
When trying to navigate this link within the Browser following response ill get:
CRJAZ1316E The user "XXX" does not have permission to read item "xxxxxxxxxxxxxxxxx", which has the "ProjectArea" item type.
There is a similar query at IBM:
https://jazz.net/forum/questions/261368/query-all-available-components-or-all-of-one-project-area
But the answer there is not really helpful for me.
Maybe you can give me some hints what I am doing wrong.
Beta Was this translation helpful? Give feedback.
All reactions