We have a permission scheme for an action that allows both Admins and Developers permission, but there are certain cases where I would like to only allow an Administrator to be able to perform an action. I was thinking that I could create an Automation rule that would check an initiator's user role, but I cannot seem to find if that is even possible or not. Is there a smart value that can be used to return the user role value? Thanks!
There isn't a smart value for the user that would get you the project role they belong to, so you have two options. You could either create a manual automation and only allow a specific group to run it or the other option would be in the automation use the web hook component to get the project role and then check if the user is in the role you want them to be in before the automation proceeds.
Thanks Mikael! I do not think the manual rule would work for what I'm trying to do because I want a trigger on transition. But the webhook might be exactly what I could use. I only started to learn about those last week, so I'm still completely ignorant on how to use them well. Could you send me a sample webhook for how to get that project role from the initiator of a rule?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Adding to Mikael's answer:
Here is a how-to article for calling a REST API function from a rule: https://community.atlassian.com/t5/Jira-articles/Automation-for-Jira-Send-web-request-using-Jira-REST-API/ba-p/1443828
If you perform a web search for your Jira Server REST API you can find the function needed for the call.
Kind regards,
Bill
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks to you both! This should get me what I need. I appreciate the information and help!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.