How do I assign a JIRA issue to a specific user on transition?

I want to be able to assign an issue to our lead tester automatically on a 'resolved' transition.

Options for post-functions to add to a transition include:

* Assign to Current User

* Assign to Lead Developer

* Assign to Reporter

There isn't an "Assign to (selected user)" or "Assign to (custom role)".

The page below suggests that you can create your own post-functions, but the links explaining how to do so are broken:

https://confluence.atlassian.com/display/JIRA044/Configuring+Workflow#ConfiguringWorkflow-ApplyingPostFunctionstoTransitions

How can I set up a simple post-function to assign to the lead tester?

Obviously I could pretend the lead tester was the lead developer, and assign it like that, but I'd like to be able to specify the role properly, or select a user without a role.

Thanks,

Richard

3 answers

1 accepted

This widget could not be displayed.

go to Add new post Function->Update Issue Field->Assignee and select your lead tester.

Ah, OK. That should have been obvious... thanks. Since there were specific ones for the other users I thought it would be something more complicated!

Doing it this way assigns the issue to the lead tester regardless of whether the resolver selects a different user. Is there a way to assign the issue first to the selection of the person resolving the issue (if any) but default to the lead tester if no new user is selected? Or would a new script be needed for that?

I realise there probably isn't, since the "assign user" drop-down on the resolve screen doesn't have "no selection" - by default the current user remains selected, and I don't see a way to tell whether that's a deliberate choice or not.

I guess we would need something like, "If selected new assignee = current assignee then new assignee = lead tester, else new assignee = selected new assignee" which would involve scripting.

haven't tried anything like that tbh. I would guess you'd need to script it that way.

hi, I tried to follow the steps: Add new post Function->Update Issue Field->Assignee and select specific user. However, when I start typing in the user's ID, it is not recognized by the system. I tried with the ID, first name and last name. The user in question is an Admin in JIRA, and this is Cloud JIRA. Would appreciate ideas and guidance on how I could troubleshoot this. Thanks.

Sharad, and any others that stumble here, you need to go to System > Global Permissions > Browse users and enable this permission. Cheers!

This widget could not be displayed.

Yet another recurrent problem of scripting the WF. You have multiple ways to achieve that:

1) using ScriptRunner - https://marketplace.atlassian.com/plugins/com.onresolve.jira.groovy.groovyrunner - free, praise Jamie for that

2) using JJupin - https://marketplace.atlassian.com/plugins/com.keplerrominfo.jira.plugins.jjupin - created by me, but paid

3) Other plugin, check https://marketplace.atlassian.com/search?q=scripting

4) write your own postfunction, start here: https://developer.atlassian.com/display/JIRADEV/JIRA+Plugin+Tutorials

Have fun

Can anyone tell me how to accomplish this task with OnDemand, or if it's even possible?

Suggest an answer

Log in or Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Wednesday in New to Jira

Are you planning to trial, or are currently trialling Jira Software? - We want to talk to you!

Hello! I'm Rayen, a product manager at Atlassian. My team and I are working hard to improve the trial experience for Jira Software Cloud. We are interested in   talking to 20 people planning t...

159 views 2 0
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