Hi there,
I have a little powershell script which is creating some schema that I need, but I want to be able to have the "Allow others to select objects from this schema" check box in the General Configuration to be set to true where as the default it is unchecked.
I can't see in the API where I can set this?
Does anyone know how I can set this to on automatically every time a schema is created or what the attribute is to set to true when creating via the API?
thanks
Figured it out
Function UpdateSchemaGlobal () {
$body = @"
{
`"allowOtherObjectSchema`": true
}
"@
$response = Invoke-RestMethod "https://api.atlassian.com/jsm/assets/workspace/$workspaceId/v1/global/config/objectschema/$SchemaId/property" -Method 'POST' -Headers $headers -Body $body
$response | ConvertTo-Json
}
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.