It's all about the answers!

Ask a question

Rest API for Updating WI Linktypes

Keerthivasan KP (11) | asked Jun 20, 5:22 a.m.

We are working to link the GitHub Commit & Pull Request Link Types to ALM Work Item through Rest API Call. We are getting the error saying "No Project Area Set".

Rest API:
Server URL +"/service/

Inputs As Per Request Tab in the Browser Console
"itemId": "_Ql44IfU7Ee2lmP5eKuZ9Tw",
"type": "task",
"stateId": "_Jb358vVmEe2lmP5eKuZ9Tw",
"updateLinks": "{\"cmd\":\"addLink\",\"type\":\"\",\"end\":\"target\",\"name\":\"Contributes To\",\"comment\":\"298015: Story WI ifix022\",\"uri\":\"\"}",
"additionalSaveParameters": [
"sanitizeHTML": "true",
"projectAreaItemId": "_6BpyIAJhEeeOTILaMRLo0Q",
"projectAreaConfigurationStateId": "_ZQXEov6hEe2lEZlwEQROeA",


Error from Plain Java : CRJAZ2942E A request from this server to another server could not be completed. The other server returned a 400 HTTP error with this error text: Bad Request.
Caused by: java.lang.IllegalArgumentException: No project area set

One answer

permanent link
Ralph Schoon (62.7k33643) | answered Jun 20, 6:45 a.m.
edited Jun 20, 8:06 a.m.

 The API you are trying to use is an internal API (as can be seen in the internal in the URL). You are not supposed to use it. The error message suggests that the information about a project area is missing.

I fail to understand, from what you provide, how the Plain Java Client Libraries are involved. Maybe just as HTTP client. How to link elements using the Plain Java Client Libraries is explained here:

Your answer

Register or to post your answer.