Hello team
I would like to set the issue security level to the group of the reporter .
Means
Reporter in group 1 == >When Reporter1 creates a ticket, Security Level is set to Group1
Reporter in group 2 == >When Reporter1 creates a ticket, Security Level is set to Group2
I need your help
Thank you
Regards
Karim
There are a lot of ways to do this. But they all require addons. What addons do you have available in your instance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
So as I tried to figure this out, I realized that the "reporter is in group" as a "limit" on the post function actually isn't available in a lot of addons. So this is a little trickier then I first thought.
JSU will sort of work. if you assume the reporter is the user creating the ticket.
What you can do it add post functions to your "create" transition.
You can actually add a set of two post functions.
The first is a "precondition" that must be true, and the 2nd is the action to take
So for example you could use the "Precondition: User Is In Any Groups (JSU)"
That will check that the user executing the transition is in a group. (in this case, group 1)
Then you use the Update Any Issue Field (JSU) post function to set the security level., making sure to set thet precondition must be true
Then after that add another precondition for user in group, making sure to set the "Discard the result of previous precondition" this time for group 2.
You should review the documentation on using preconditions in post functions on the JSU documentation. https://confluence-apps.beecom.ch/display/JSU/Workflow+Preconditions
This is making the assumption that the user who is creating the ticket is the reporter. This may not be the case if you are creating a ticket in behalf of someone else. In that case, this precondition wont work. I'd have to think about how to make that work with JSU.
Beyond that, you may have to use the scripting addins, powerscripts or scriptrunner.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.