How to autoassign issue to QA resource without removing developer from assignee?

Here is the situation:

A, B and C are developers and they get tasks assigned to them

X is our QA. I added a post-function in workflow transition, so that whenever A,B, or C move their issues to "In Testing" status, it's automatically assigned to X.

That created an issue for task credits. Since X is autoassigned to all tasks that move to "In Testing" column, X is the assignee when those issues are finally resolved (Done) and moved to the "Done" column because I dont know how to reverse it back to the original assignee.

I would like to have a workflow where X get the notification when an issue is "In testing" column, but want to retail the assignee credit to A.B, or C. I dont see a post function to assign it back to the original assignee.

How to do that? I saw some posts about custom fields. But I dont know how to incorporate it.

Currently the workflow is:

Status:           ToDo->->InProgress->-(autoassign to X)->InTesting->->Done

Assignee(s)     A,B,C             A,B,C                                              X                X

What I would like to achieve is:

Status:           ToDo->->InProgress->-(autoassign ??)->InTesting->->Done

Assignee(s)     A,B,C             A,B,C                                       X/A,B,C       A,B,C

 

PS: I am not an IT technical person to understand codes or detailed technical stuff. A person in chemistry research field using Jira

3 answers

Hi Roy,

It sounds like you don't want both people assigned at same time so very doable.

You can do this using the Power Scripts add-on.

There is a video tutorial walking you through in detail here.

Code is simple:

Post Function 1:

string [] testers = usersInRole("TEST", "Product Development Tester");

assignee = testers[0];

 

Post Function 2:

string [] h = fieldHistory(key, "assignee");

string a;

if(isNotNull(h[1])) {
    a = h[1];
}
else {
    a = h[3];
}

assignee = a;

Hope this helps you!

Good question Roy. It sounds like you want some advanced functionality in your workflow to occur. I recommend checking out JIRA Misc. Workflow Extensions, the app will allow you to do a lot of this:

  • When the issue moves to "Done", you can set up a Post Function called "Assign to last role member" and assign the issue back to the original developer (or whomever you'd like).
  • You can set up an email rule, in JIRA Misc. Workflows its called "Email Issue", which will let you send an email directly to whomever will need to see an update.

Take a look and let me know your thoughts. I'm not trying to sell you on an add-on / app, I just think this is what you'll need because you want to execute these specific customized / advanced Post Functions. 

0 vote
Joe Pitt Community Champion Oct 09, 2017

The title on your question indicates you want to have 2 assignees. If that is the case, it can't be done. If you want to change it go with what @Michael Brown [Ascend] said

Apologize for the confusion. No, I do not want to have 2 assignees at the same time. I just want the program to notify QA that now there are issues in the TESTING column without changing the original assignee.

Suggest an answer

Log in or Join to answer
Community showcase
Sarah Schuster
Posted Jan 29, 2018 in Jira

What are common themes you've seen across successful & failed Jira Software implementations?

Hey everyone! My name is Sarah Schuster, and I'm a Customer Success Manager in Atlassian specializing in Jira Software Cloud. Over the next few weeks I will be posting discussion topics (8 total) to ...

3,331 views 14 20
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot