I have a workflow based on the following status:
Testing --> Code Review --> Ready For Release
The assignation rule is this:
Testing is assigned to A
Code Review is assigned to B
Ready For Released is assigned to A (the user who test the issue)
I like to automate the assignation when issues are transitioned to "Ready For Released" based on who was the assignee on "Testing Status"
Hi Sebastián,
You should be able to do this simply with Automation for Jira's assign action. There's an option to select the previous assignee:
Cheers,
Andreas
This only works when the assignee of the issue is in Code Review never changes. It doesn't really take in to account things like the intended code reviewer taking a vacation and the issue being reassigned, etc. Saving the user to a field ensures that the issue gets back to the right place, regardless of what happens to the issue when it is in code review.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Good point there @Dave Theodore [Coyote Creek Consulting].
Having a "previous assigne" makes a more strong solution if reassignation on the "code review" status occurs.
Thanks @Dave Theodore [Coyote Creek Consulting] and @andreas for your responses.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
True - it depends I guess on the exact requirements and workflow. Assigning to a member of a custom field is just as easy though with Automation for Jira:
Any user picker field would work.
You'd probably need two rules:
Cheers,
Andreas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@andreas I used the {{issue.Previous Assignee}} but is not working. When the issue is transitioned to "Ready for Release" it is assigned to "Unassigned", not to the previous Assignee.
Looking at the smartfields on confluence config https://codebarrel.atlassian.net/wiki/spaces/AUTO4J/pages/27656216/Smart+Fields i could not find the {{issue.Previous Assignee}} definition.
Any other Smart Fields config documentation i am missing?
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Dave Theodore [Coyote Creek Consulting] ,
Hope it is not to late to pop a question in this tread ;)
Have a question regarding your comment: "This only works when the assignee of the issue is in Code Review never changes. It doesn't really take in to account things like the intended code reviewer taking a vacation and the issue being reassigned, etc. Saving the user to a field ensures that the issue gets back to the right place, regardless of what happens to the issue when it is in code review. "
Could you explain why you see this as a problem, since ticket will be assigned back to the Assignee A not to the one who was assignee during Code Review? But if we think that Assignee A is maybe away from work when ticket is assigned back to him on "Ready For Released", then we might have a problem anyway.... Are you further suggesting that the best way would be to have a custom field called e.g. Owner where we would save user and then assignee it back to that person, but that person can be away too...?
Many thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is somewhat situation dependent. In the original post, Sebastián had 2 users, the developer and the code reviewer. The request was to have a way to automatically assign the issue back to the original developer after code review completed. The only reliable way to do this is to capture the original assignee in a field, then use that field to assign the issue back. Using the "last assignee" method works if those two users are the only ones involved, but in real life, this doesn't always happen. There are a variety of reasons why the issue might be assigned to some other user or multiple users. If you capture the original assignee in a field, you always get back to that person when you move the issue to "Ready for Release" (as in the original example.)
Consider this example:
Developer completes the code changes and tosses it over the fence to CodeReviewer1. CodeReviewer1 looks at the code and realizes that he needs to have someone else look at the code, so he assigns it to CodeReviewer2. CodeReviewer2 is going on vacation and doesn't have time to thoroughly look through the code, so she assigns it to CodeReviewer3. CodeReviewer3 completes the review and moves the issue to "Ready for Release." By using the method of assigning back to the previous assignee, the issue would be assigned to CodeReviewer2. If Developer was captured in a custom field, the issue would be assigned back to Developer. Make sense?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Dave Theodore [Coyote Creek Consulting] ,
Yes, it makes sense! :) Many thanks for clarifying, I am with you!
Kind Regards,
Bojana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks @Dave Theodore [Coyote Creek Consulting] for the workaround.
Creating "Previous Assignee" field might do the trick with Jira Automation. I am reticent to by 2 workflows solutions right now. Nevertheless i will have a look at JMWE.
Thanks!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.