New Ranks & Badges For The Community!
Notice something different? The ranks and associated badges have gone "Star Fleet". See what they all mean HERE
Highlighted
Lieutenant
Lieutenant
375 views

Getting status code 500 while creating a new requirement instance using ALM REST API using java

Hi Experts,

While creating a new requirement instance via ALM REST API, I am getting status code 500. 

XML which I am using to post: <Entity Type="requirement"><Fields><Field Name="name"><Value>Req123</Value></Field><Field Name="type-id"><Value>123</Value></Field></Fields></Entity>

I am able to easily get anything like defects, requriments. But POST gives me error 500.

Note: Login and other authentication are returrning status code 200.  Attaching few of my files. Let me know if any other files are needed.

Please help. It's urgent. Thanks.

 

0 Likes
2 Replies
Highlighted
Commander
Commander

Hello,

Regarding to your xml I'm seeing that you are only including the Entity Type, Field Name and Id.

You will need to confirm what are all the required mandatory fields for the requirements in the project you are trying to post that information. That because those fields cannot be skipped and it will throw an error if you do that so confirm all the mandatory fields and include them in the xml file and try again do the post.

Regards,

0 Likes
Highlighted
Micro Focus Expert
Micro Focus Expert

Hi,

Do you perhaps get a error description which might help to analyze the issue?

Just looking at the code I use in the GDPR Content Pack (you can have a look at function fktCreateItemALMQC): I set values for requirement name, description, type-id and parent-id. I am pretty sure type-id and parent-id are mandatory fields (please have a look at the docs - or just try it).

Regards,

Dirk

0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.