Unable to update test group name through API

Marta Siudzi?ska
Marta Siudzi?ska Member Posts: 4
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: Jama Connect 8.71.2, production environment.

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

Comments

  • [Deleted User]
    [Deleted User] Posts: 152
    edited October 2022
    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
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 10-12-2022 03:13
    From: Marta Siudzi?ska
    Subject: Unable to update test group name through API

    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: Jama Connect 8.71.2, production environment.

    ------------------------------
    Marta S
    ------------------------------
  • Marta Siudzi?ska
    Marta Siudzi?ska Member Posts: 4
    edited October 2022

    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:

    image
    and the request and the response for PUT:


    image

    image




    ------------------------------
    Marta Siudzi?ska
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 10-17-2022 15:59
    From: Carly Rossi
    Subject: Unable to update test group name through API

    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
    ------------------------------

    Original Message:
    Sent: 10-12-2022 03:13
    From: Marta Siudzi?ska
    Subject: Unable to update test group name through API

    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: Jama Connect 8.71.2, production environment.

    ------------------------------
    Marta S
    ------------------------------
  • Alessandro Valli
    Alessandro Valli Member, Data Exchange, Jama Connect Interchange™ (JCI) Posts: 789
    edited October 2022
    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
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 10-18-2022 03:22
    From: Marta Siudzi?ska
    Subject: Unable to update test group name through API

    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:

    image
    and the request and the response for PUT:

    image
    image


    ------------------------------
    Marta Siudzi?ska
    ------------------------------

    Original Message:
    Sent: 10-17-2022 15:59
    From: Carly Rossi
    Subject: Unable to update test group name through API

    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

    Original Message:
    Sent: 10-12-2022 03:13
    From: Marta Siudzi?ska
    Subject: Unable to update test group name through API

    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: Jama Connect 8.71.2, production environment.

    ------------------------------
    Marta S
    ------------------------------
    Alessandro
    Systems Engineer
    SICK AG
  • Marta Siudzi?ska
    Marta Siudzi?ska Member Posts: 4
    edited October 2022
    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.

    image

    image



    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
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 10-18-2022 05:12
    From: Alessandro Valli
    Subject: Unable to update test group name through API

    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
    ------------------------------

    Original Message:
    Sent: 10-18-2022 03:22
    From: Marta Siudzi?ska
    Subject: Unable to update test group name through API

    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:

    image
    and the request and the response for PUT:

    image
    image


    ------------------------------
    Marta Siudzi?ska

    Original Message:
    Sent: 10-17-2022 15:59
    From: Carly Rossi
    Subject: Unable to update test group name through API

    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

    Original Message:
    Sent: 10-12-2022 03:13
    From: Marta Siudzi?ska
    Subject: Unable to update test group name through API

    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: Jama Connect 8.71.2, production environment.

    ------------------------------
    Marta S
    ------------------------------
  • Cody Berman
    Cody Berman Member Posts: 4
    edited January 2023
    I'm running into the same issue.

    @Carly Rossi do you know if anyone from Jama has looked into this?  Is there a defect ID we could keep an eye out for in future releases?

    ------------------------------
    Cody Berman
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 10-19-2022 04:15
    From: Marta Siudzi?ska
    Subject: Unable to update test group name through API

    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.
    image
    image

    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
    ------------------------------

    Original Message:
    Sent: 10-18-2022 05:12
    From: Alessandro Valli
    Subject: Unable to update test group name through API

    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

    Original Message:
    Sent: 10-18-2022 03:22
    From: Marta Siudzi?ska
    Subject: Unable to update test group name through API

    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:

    image
    and the request and the response for PUT:

    image
    image


    ------------------------------
    Marta Siudzi?ska

    Original Message:
    Sent: 10-17-2022 15:59
    From: Carly Rossi
    Subject: Unable to update test group name through API

    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

    Original Message:
    Sent: 10-12-2022 03:13
    From: Marta Siudzi?ska
    Subject: Unable to update test group name through API

    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: Jama Connect 8.71.2, production environment.

    ------------------------------
    Marta S
    ------------------------------
  • [Deleted User]
    [Deleted User] Posts: 152
    edited January 2023
    Hi all, 

    Apologies for the delay here -- in researching this further, I've not identified any matching known defects to the issue described. So we can dig into this further, it'd be helpful if you could each file a Support ticket hereand reference this thread in the ticket description (as well as the version and type of Jama Connect you're using, along with any other pertinent info) on it.

    Thank you!


    ------------------------------
    Carly Rossi // she/her
    Community Manager // Jama Software
    Portland, OR
    ------------------------------
    -------------------------------------------
    Original Message:
    Sent: 01-03-2023 16:08
    From: Cody Berman
    Subject: Unable to update test group name through API

    I'm running into the same issue.

    @Carly Rossi do you know if anyone from Jama has looked into this?  Is there a defect ID we could keep an eye out for in future releases?

    ------------------------------
    Cody Berman
    ------------------------------

    Original Message:
    Sent: 10-19-2022 04:15
    From: Marta Siudzi?ska
    Subject: Unable to update test group name through API

    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.
    image
    image

    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

    Original Message:
    Sent: 10-18-2022 05:12
    From: Alessandro Valli
    Subject: Unable to update test group name through API

    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

    Original Message:
    Sent: 10-18-2022 03:22
    From: Marta Siudzi?ska
    Subject: Unable to update test group name through API

    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:

    image
    and the request and the response for PUT:

    image
    image


    ------------------------------
    Marta Siudzi?ska

    Original Message:
    Sent: 10-17-2022 15:59
    From: Carly Rossi
    Subject: Unable to update test group name through API

    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

    Original Message:
    Sent: 10-12-2022 03:13
    From: Marta Siudzi?ska
    Subject: Unable to update test group name through API

    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: Jama Connect 8.71.2, production environment.

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