Set Issue Security
Use this post function to set the security level of an issue based on a custom condition. This can help ensure that sensitive information is only visible to the appropriate users. For example, you can use this post function to make sure that issues created by those in the business-users group are marked as Private. This is useful in situations where business-related issues contain sensitive information that should not be visible to all users.
Security level schemes
Each project in Jira can be associated with a specific security level scheme, which contains one or more security levels. If you are applying this post function to multiple projects, ensure that all those projects use the same issue security level scheme. If the specified security level scheme or the security level itself does not exist in Jira, a message will be recorded in the application log file. Users performing the action that triggers the post function will not receive any direct alerts or notifications about the missing scheme or level.
Use this post function
You can now test to see if this post function works.