Hi,
In our company, we use different security levels on issues. We can manually switch between the two security levels using the lock symbol. Now, the levels should be automatically set during a workflow transition. However, when I configure the post function in the transition, it doesn't get executed. The user, in this case me, is assigned to the appropriate project role and also has the permission to set security levels. Manually, this is indeed possible.
What could be the problem here?
Thanks in advance.
Heiko
Hi!
I am doing this is one of my environments, but I have chosen to solve the need with Automations instead. I wonder if I had the same problem as you with the postfunction...or if I just happened to choose that solution option.
If you choose an Automation make sure Project Role (atlassian-addons-project-access) has the Set issue security permission
br
Lisa
Are you using this postfunction?
I configured mine like this in my testenvironment. So the postfunction is checking that the user performing the transition is in the Project Role Administrators, then setting the Issue security level to "project admins only".
It seems to be working. In the step to status Assess the postfunction is changing security level from "Open to all" which is the default security level, to "Project admins only".
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lisa!
As you can see from my response to @John Funk , I followed the same steps as you did in your test environment. Now I’m at a loss as to why it’s not working for me.
I can change the security level manually using the lock icon, but it doesn’t work automatically via the post function.
Do you have any idea what could be causing this?
Thank you once again for your efforts.
br
Heiko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
OK so your account belong to a group that has the "Arbeitsplaner" Project Role, and this role has the correct permission and is also chosen as the validation in the post function.
You also have added your account as a default user in this project role.
Can you give us a screenshot of the project settings > people of the project you are testing in? Just because you added your account to the default user in a project role doesn't mean that you are added to all existing projects, only the ones created after you added the account as a default user. We want to be sure that you are actually having this role in the project you test in.
To test if the group is the problem for the postfunction, add your account straight into the Project Role "Arbeitsplaner" for the particular project and test again to perform your transition.
/L
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Lisa,
You identified the problem and immediately solved it.
I didn't realize that the project role settings only apply to the default settings. Now I’ve added the user to my project with the corresponding project role 'Arbeitsplaner Projektrolle', and everything works as expected!
Thank you so much, you've made my day!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Happy to be at your service :-D
Have a nice evening!
/L
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Heiko,
Have you tried making the change with an automation rule instead of a Post Function?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can you share more information about your post function? Screenshots help. Also, there's no error? It just doesn't do what it is supposed to do?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi John,
Here is a screenshot of my transition:
And I am a member in this project role:
Permissions are set both for the project role and again for my group:
The transition is being executed, and no error message appears. Is there an error log?
Normally, the security level should be changed with these settings, but that’s exactly the problem. It simply isn’t changing.
Can you spot any mistakes?
Cheers,
Heiko
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Thank you for your responses. Due to the relatively new automation limits, we had to find an alternative. Previously, the automation worked very well for months. Now we're trying to use post functions to avoid exceeding the limit.
Are there any other ideas for solving the problem?
Best regards
Heiko
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.