Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in
Celebration

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,456,776
Community Members
 
Community Events
176
Community Groups

Search for last person to make a state change

I am wanting to create a subscription on a filter where only the last person who changed an issue to a specific state gets an email.

I have created the below filter and tested that the email only goes to the person who has made the transition to "Resolved"

        project = TESTPRJ AND issuetype = Bug AND status changed to "Resolved" BY currentuser()

However, an issue can transition to that state multiple times, and I only want the email to go to the last person that changed the state to "Resolved" and not all users that changed the status to "Resolved".

I haven't tested this scenario, but wondering if the filter I have will only send an email to the last person that changed the status, or all people who did?  If it goes to all, is there a way to limit this to only the "last" person that made the state change?

1 answer

0 votes
John Funk Community Leader Jun 17, 2022

Hi Patricia,

I am not sure how the subscription will hand the BY currentUser() part as I have never tried that. Are you setting the Assignee to the currentUser when the user changes the Status to Resolved? 

I have tried it with a record where the transition only occured once, and the email only goes to the person that made the transition.

Seems to work the same way if you use "Assignee = currentuser()"  will only go to the person who is the assignee.

"watcher = currentuser()" will only send emails to someone that has selected to watch the issue.

So, doing the same thing with "BY currentuser()" also seems to only send the email to the person that performed the transition change.

I am going to test it more when I have someone else to test it with.

In all cases, the person must belong in the group I set the subscription up with.  If the person is in that group, then it will send only the person in the fields from above the email, it will not send the email to the entire group of people.

So, with the transition one, I am just curious if it sends it to "all" people who have transitioned the record to that state, or just the last one.

John Funk Community Leader Jun 20, 2022

Very good - thanks for the additional information. I would just do a little test with a single issue and have multiple people change to that status and see what happens. 

I suspect that it will still be only the last person, but I really don't know what will happen. It will be good to find out.  ;-)

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events