It's all about the answers!

Ask a question

Getting a 401 Not Authorization Error while attempting to query a work item in JazzHub project

Lakshmi krishnamurthy (34) | asked Apr 26 '16, 10:56 a.m.
edited Apr 26 '16, 11:18 a.m.
I am attempting to use the OSLC REST APIs to query a work item within a project I've setup using JazzHub and Track & Plan in Bluemix. My login attempt succeeds but when I attempt to query a work item using this

The only parameters I am passing are
{'OSLC-Core-Version': '2.0'}

The same API works fine when I access a RTC Server.  Wonder what might be wrong with this logic given that it works against our RTC servers.

Accepted answer

permanent link
Robin Bobbitt (59679) | answered Apr 26 '16, 11:45 a.m.
Use your alias with your IBM ID password. This works for me:

curl -H "Accept: application/json" -H "OSLC-Core-Version: 2.0" -i -L -u ryehle:<my_ibm_id_password>
Lakshmi krishnamurthy selected this answer as the correct answer

Lakshmi krishnamurthy commented Apr 26 '16, 3:16 p.m.

Awesome. That worked. Had to switch to curl within my python modules. But, it worked. Thank you.

Your answer

Register or 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.