A workflow post function that allows you to assign issue randomly to one of the children of the selected user satisfying the condition based on the properties.
How to add “Assign Issue According to User Properties“ post function to a transition:
To select the workflow you want to edit, first go to the "Workflows" option under the "Issues" tab.
Navigate to the "Diagram" section.
Click on the transition to which you want to add a post function.
Click on the "Post Functions" option.
Click "Add post function"
Select "(OrgChart) Assign Issue According to User Properties" from the list of post functions.
After configuring the desired settings for "Assign Issue According to User Properties" click on the "Add" button.
After configuring your settings, don't forget to publish the draft workflow by selecting "Publish Draft" to ensure that your configurations take effect. Otherwise, the changes you made will not be applied, and the workflow will remain in draft mode.
Configuration Details
From which hierarchy should the parent be picked up?
To clarify, you need to determine whether the configurations you are making here are within the project hierarchies or within the global hierarchy found in the organizational chart app. Each project has its own hierarchy, and you need to decide which one you want to work with. To view the contents of the hierarchies, simply click on the hierarchy names. For detailed information about project hierarchies or the global hierarchy, click here.
Among whose children should assignee be picked?
You have three options to select a user here. By choosing one of these options, you can determine which user will be selected:
User Triggering the Transition: This option allows you to select the user who triggers the transition and from their children in the hierarchy that match the given property value, one will be randomly selected and assigned as the assignee.
Parent of the User Triggering the Transition: With this option, you can select the parent of the user triggering the transition. To clarify further, the parent of the user triggering the transition will be selected, and from their children in the hierarchy that match the given property value, one will be randomly selected and assigned as the assignee.
User from Selected Field: When you click on this option, another field will appear that you need to select. Through the selected user field, you can select a user from the hierarchy and retrieve their parent and from their children in the hierarchy that match the given property value, one will be randomly selected and assigned as the assignee.
Property-Operator-Value
Property: The values here are properties found in your Jira's global hierarchy. If you are unsure how to add these properties to users, you can click here to learn how to add new properties. Additionally, you can click here to learn how to add property values to users.
Operator: There are two operators available to fulfill the condition: 'equals' and 'include'. When you select the 'equals' operator, the user's selected property value must be an exact match to the value you input. Otherwise, the condition will not be met, and the post function will not work as intended. When you choose the 'include' operator, the user's selected property value should include the value you input. For example, if the user value in the selected property is 'Example' and you input 'Ex' or 'xample', the post function will work. However, if you input a value like 'Exe', the post function will not work as expected.
Value: Here, you need to input the value related to the selected property. Based on the selected operator, you can enter values that should be either an exact match or included in the user's property value.