Hi support,
We are trying to setup a functionality where the issue security level is set per user group.
We are using JIRA 6.4.10 with Service Desk 2.5.9 and ScriptRunner 4.1.3.9.
Script runner provides this functionality in JIRA workflows.
Somehow it does not work for us.
What we did:
- Setup a user group "sec-customers"
- Setup a user group "sec-agents"
- Set an issue security scheme "sec" with one security level "sec-request" and assigned the above user groups
- In the project we set permission "Set Issue Security" to allow the above groups to set the issue security.
- In the workflow of the project, on the "Create Issue" transition we added a post function (provided by script runner) to set the issue security level depending on the reporter's user group, changed the group to "sec-customers" and the security level to "sec-request"
Expected result:
When a member of the group sec-customers logs an issue the security level should be set to "sec-request"
Actual result:
The security level is set to "None" (or is not set)
We checked the code by adding a scripted field with the same code as in the post function an it returns "true" for the issues created by "sec-customers", so it should as well work in the post function.
If you wish we can have a look at our system configuration together.
Thanks and regards,
Oliver Weiser