Adding project roles to a security scheme via API

Hi community!

We are trying to add a project role to an issue security scheme by using the endpoint “Add issue security level members” of the API, as documented here.

My assumption was that it should be possible to add a project role to the security scheme by using the type projectRole with the respective parameter, since we are doing the same thing for permission schemes. The request and response look as follows, so the type projectRole is apparently not supported:

On the other hand, the following request with the same type is successful when updating a permission scheme:

{
  "description": "xyz",
  "name": "xyz",
  "permissions": [
    {
      "holder": {
        "parameter": "10336",
        "type": "projectRole"
      },
      "permission": "ADMINISTER_PROJECTS"
    }
  ]
}

I know that the “Add issue security level members” endpoint is still experimental. But I was wondering if there are any plans to add the ability to add project roles to a security scheme via API? Or is there another way to achieve this that I am not aware of?

Thank you for your help! :slightly_smiling_face:

Hi @MichelNeeser,

did you find a working solution for the problem? I’m also trying to set a Project Role as Issue Security Level member.

Regards
Adrian

Hi @AdrianSomesan

Unfortunately not, we’re currently adding the project roles manually. I don’t think there is a solution for this at the moment, unless Atlassian extends/completes the endpoint.

Regards,
Michel

1 Like

Hi @MichelNeeser,

That is disappointing to hear. Even if the endpoint is still experimental, I don’t understand why the same “Holder” object is not simply used here as in the permission schemes. It already exists.

The API should offer the same possibilities as the frontend mask…

Regards,
Adrian

Hi @AdrianSomesan,

I fully agree with you and I hope that someone of Atlassian’s API team sees this thread. It would be great to have the endpoint extended as soon as possible.

Regards,
Michel