I made a scripted workflow postfunction to send email to reviewer. inside the email, I used getWorkflowButtons.call() to display workflow buttons for reviewer to approve/reject. it works well if no special permission setup.
then in my workflow, I want to allow approve/reject only for reviewers, but not for submitters, so I add permission control in workflow condition.
the the problem is. the workflow is triggered by submitter. so the function getWorkflowButtons.call() get all the buttons as submitter's permission, but for the reviewer, so the approve/reject button doesn't show.
How can I provide workflow buttons in email that works for reviewers?
when calling getWorkflowButtons.call() can I set any project role to limit the buttons?
I have multiple projects that use variations of the same base workflow. The variations depend on the requirements of the project or issue type. The variations mostly come in the form of new statuses ...
Connect with like-minded Atlassian users at free events near you!Find an event
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.Host an event
You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events