---
title: "Set assignee of the issue based on day of the month."
canonical: "https://support.appfire.com/space/JMWE/461570543/Set%20assignee%20of%20the%20issue%20based%20on%20day%20of%20the%20month."
format: markdown
---
> Macro (aura-html)

This article provides the code snippet to assign the issue to a user, based on the day of the month, using [Set field value (JMWE app)](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78056458) post-function.

## Instructions

1. Navigate to the intended workflow to make the necessary changes in the edit mode.
2. Select the required transition.
3. Select the *Post functions *tab and click `Add post function`.
4. Add the “Set field value (JMWE app)” post-function.
5. Select “Field” as “Assignee” and “Value type” as “Groovy Expression”.
6. Add the below Groovy script in “Value”:

Replace `john`, `james`, `alex` with the usernames of desired users.

![image](media://5ebf8bab-7244-47af-8c71-f9f597eeebaa)

### References

- [now variable](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/78055921)
- [Control structures in Groovy](https://appfire.atlassian.net/wiki/spaces/JMWE/pages/461440031)