When trying to set a new issue property I get 403 permission denied, when the key name has a forward slash in its name. Is it in any way possible to create a key with a forward slash?
https://developer.atlassian.com/cloud/jira/platform/rest/v3/api-group-issue-properties/#api-rest-api-3-issue-issueidorkey-properties-propertykey-put
Example:
Works:
%2F
Error message:
ok: false,status: 403,statusText: 'Forbidden'
Another thing is the error message, which is very unclear.
Hi @Frederik Vilhelmsen
The only formatting constraints documented is that property keys should be JSON forgettable.
However any slashes in the the request URL are going to be interpreted as a path so using slashes in proper keys will not work via REST.
I forgot to add that making a request with basic authentication like this, does work.
The requests shown are not the same. The Forge version is sending two sets of properties which I would not expect to work. At best it would ignore one of the properties key values. Are you also passing the properties values in the request body?
The basic issue here is that using slashes will not be processed as a property key but as a path to be executed on the server.
The values passed are documented as being "Path Parameters" and not name/value parameters. i.e. you are allowed to add issue and property keys into the path.
This will always result in error codes being returned when other paths are detected i.e. unexpected slashes in the call.
The only option is to use expected property key formats such as '-'
It looks like you're new here. Sign in or register to get started.