Greetings community,
I want to programmatically add a simple conditon to my workflow, something like "Only users in project role Administrators can execute this transition."
I know this is possible for post-functions with
FunctionDescriptor functionDescriptor = workflowFunctionDescriptorFactory.updateIssueField(...);
workflowTransitionService.addPostFunctionToWorkflow(...);
and it should work for conditions analogously with
ConditionDescriptor conditionDescriptor = workflowConditionDescriptorFactory.permission(ProjectPermissionKey key);
workflowTransitionService.addConditionToWorkflow(...);
but I can't get my head around how to create the PermissionKey.
Is the ProjectPermissionKey the right concept to begin with, or do I need something else?
Tanks in advance!