Support

 View Only
  • 1.  Unable to update test group name through API

    Posted 10-12-2022 03:13
    I am trying to update the test group name by sending a PUT request to the endpoint:
    /testplans/{id}/testgroups/{testGroupId}
    with body:
    {
    "name": "new name"
    }

    Unfortunately, I get the 401 with the response:
    {
    "meta": {
    "status": "Unauthorized",
    "timestamp": "2022-10-11T09:26:06.172+0000",
    "message": "You don't have permission to perform this action."
    }
    }

    At the same time, I am able to make this update manually in Jama.

    Could you please help me with this issue?

    Version: 

    ------------------------------
    Marta S
    ------------------------------


  • 2.  RE: Unable to update test group name through API

    Posted 10-17-2022 15:59
    Edited by Carly Rossi 10-17-2022 16:07
    Hi Marta, 

    Is this happening with multiple projects, or just with a specific project? Also, are you using the Swagger page or making the calls externally?

    ------------------------------
    Carly Rossi // she/her
    Community Manager // Jama Software
    Portland, OR
    ------------------------------



  • 3.  RE: Unable to update test group name through API

    Posted 10-18-2022 03:22

    Hello Carly,

    I am only assigned to one project, so unfortunately I am not able to check if this would also be the case for another.
    I am using the Swagger page. Additionally, I successfully performed many other requests using Swagger, such as creating a test case, test plan, adding a test case to a test group, etc.
    However, I am facing an issue with this specific request to update a test group name.

    Here is the response for GET /testplans/{id}/testgroups:


    and the request and the response for PUT:




    ------------------------------
    Marta Siudzińska
    ------------------------------



  • 4.  RE: Unable to update test group name through API

    Posted 10-18-2022 05:13
    I can can confirm Marta's issue.
    I can perform such PUT as organization admin. As a user w/o admin permission I get a 401 error back.
    I have tried to additionally set assignedTo, but it seems to not have any influence.

    Defect?

    ------------------------------
    Alessandro
    Systems Engineer
    SICK AG
    ------------------------------



  • 5.  RE: Unable to update test group name through API

    Posted 10-19-2022 04:16
    Thank you Alessandro for checking this out on your side!
    I have also tried with the 'assignedTo' setting in my body request, but the result was the same - error 401.
    Moreover, I have tried to create a new test group, but also I got 401.


    So I do not even have any workaround for creating/updating a test group with a specific name.
    @Carly Rossi Would you be able to help with this issue?​

    ------------------------------
    Marta Siudzińska
    ------------------------------