Created On:  23 May 2012

Problem:

With an SCTM user account priviledge of either Administrator or SuperUser, when trying to create a link between a requirement and a test (tmrequirements.assignTest) using the code snippet below:

requirements.setCurrentProject(
   sessionStr,
   Integer.toString(projectId)
   );
requirements.assignTest(
   sessionStr,
   Integer.toString(requirementId),
   Integer.toString(testId)
   );

the following error occurs:

java.lang.RuntimeException: com.segue.tm.published.webservice.requirements.RMServiceException: RequirementsService: Insufficient write permissions to execute this function
...

Resolution:

The error occurs when having the CaliberRM integration enabled without checking the option "Enable creation of unassigned requirements".

If the same steps are executed via the SilkCentral Web UI, the described exception will also occur.  Therefore, ensure that the option "Enable creation of unassigned requirements" is checked in the CalibreRM integration of the SilkCentral project.