How do i can automate the assignee name in active sprint
Asked by Fahad Mubarik:

If any issue is move from backlog to active sprint it should be automatically assigned to user.


Answers:
author: Sagi Gueta
body: Hey [@Fahad Mubarik](/t5/user/viewprofilepage/user-id/5515269) ,

I've revisited your requirements, and I've created this automation.

The automation will affect only created issues that were added to an active (open) sprint. If you create an issue and associate it to an unactive sprint, then it won't triggered.

Hope you'll find it usefull :)

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/331022i1B1FB06D11D79EAF/image-size/large?v=v2&px=999 "image.png")

comments: author: Fahad Mubarik
body: ![Screenshot 2024-06-21 142813.png](https://community.atlassian.com/t5/image/serverpage/image-id/331062i708947532D18F797/image-size/large?v=v2&px=999 "Screenshot 2024-06-21 142813.png")


author: Fahad Mubarik
body: [@Sagi Gueta](/t5/user/viewprofilepage/user-id/4493828) i have make it more simple and it works


author: Sagi Gueta
body: Looks good!

If you have a standard subscription in Jira (not premium), and you are running a big team, I'd suggest add a post-function within the workflow instead using Jira Automation.

Atlassian changed their automation counting system so each account has 1000 success automation limit per month (the usage is presented in automation section).


author: Marc - Devoteam
body: Hi [@Sagi Gueta](/t5/user/viewprofilepage/user-id/4493828)

Adjust the workflows related to the issue types used in the project.

Add a post function when is changes to a certain status the assignee is sst based on the actor of executing the transition.

This wil only work if issues that are added to a sprint also change status.

It has it's caviats, jusr as the automation [@Ste Wright](/t5/user/viewprofilepage/user-id/1166470) proposed.


author: Sagi Gueta
body: Hey Fahad,

Can you please explain who should be the assignee in these cases? Is it suppose to be the person who added the issue to the sprint?

comments: author: Fahad Mubarik
body: No it is not the person who added the issue,i just want if any issue move from backlog to active sprint then it should be assign to "Fahad" like this


author: Ste Wright
body: Hi [@Fahad Mubarik](/t5/user/viewprofilepage/user-id/5515269)

Can you clarify the logic for this?

For example, is it the user who moves an issue from the Backlog to a Sprint should be assigned the issue?

---

If yes, this might work (although it's not foolproof):

* **Trigger:** Field value changed
  * Fields to monitor = Sprint
  * Change type = Value added
* **Action:** Lookup issues
  * JQL - *issue = {{triggerissue.key}} and sprint in openSprints()*
* **Condition:** {{smart values}} condition
  * First value = *{{lookupIssues.size\|0}}*
  * Condition = greater than
  * Second value = 0
* **Action:** Assign issue
  * To = User who triggered the event

---

The rule checks if the issue is in an active Sprint, and if it is in at least one, it assigns to the user.

But the reason it's not foolproof is it's not checking the exact Sprint added, it's just looking for any Sprint which is active.

Ste

comments: author: Fahad Mubarik
body: Great Thanks


Tags: cloud

jira-cloud