---
title: "Assign to Specific User Role Based on Issue Field"
canonical: "https://support.appfire.com/space/JEPC/11338097/Assign%20to%20Specific%20User%20Role%20Based%20on%20Issue%20Field"
format: markdown
---
> Macro (aura-html)

> ℹ️ This page is about **Enhancer Plugin for Jira Cloud**. Using** Data Center**? **[Click here](https://appfire.atlassian.net/wiki/spaces/JEP)**.

> Macro (excerpt)
> 
> <span style="color: #000000">Post function to assign an issue to a user within a specified role when a field within that issue matches.</span>

<span style="color: #000000">This post function assigns an issue to a user within the specified role automatically, if your selected field matches the value entered. For instance, you can define a post function to assign issues automatically to the escalated user's project role within the transition Start Progress, if the priority of the issue is critical.</span>

### To add the Assign to Specific User Role Based on Issue Field post function, follow these steps:

1. Click the Jira cog icon > **Issues **>** Workflows**.
2. After finding the workflow, go to the three-dots icon and click **Edit**. Navigate to the transition of your workflow.
3. Switch to the **Post Functions** tab.
4. Click the **Add post function **link.
5. <span style="color: #000000">Select </span><span style="color: #000000">**JEP - Assign to Specific User Role Based on Issue Field Post Function**</span><span style="color: #000000"> and then click the </span><span style="color: #000000">**Add**</span><span style="color: #000000"> button.</span>
6. <span style="color: #000000">Select the </span><span style="color: #000000">**Project Role**</span><span style="color: #000000"> that the issue will be assigned to, select a </span><span style="color: #000000">**Field, **</span><span style="color: #000000">and enter the </span><span style="color: #000000">**matching string **</span><span style="color: #000000">(Match Value). If the value of the field matches the value you defined, then the issue will be assigned to a user in that project role.</span>
7. Click **Add**, and you’ll be redirected to the *Post Functions* list.
8. Don’t forget to click **Publish Draft** to publish the workflow and save your changes.

> ℹ️ <span style="color: #000000">Please bear in mind that if you use this post function within </span><span style="color: #000000">**Create Issue Transition**</span><span style="color: #000000">, the post function should be placed right after the </span><span style="color: #000000">**Creates the issue originally**</span><span style="color: #000000"> statement. </span>