Auto assign user in workflow post-function?

In workflow post-function for Reopening a Closed issue, can you make it to automatically assign the issue to a particular user? I see where it can be sent according to "Role", but this is too expansive. I need to designate 1 user.

3 answers

1 accepted

This widget could not be displayed.

Use the 'Update Issue Field' post-function to change the assignee to a specific user.

It worked. Thanks:) Tried to "vote" but it keeps telling me that "anonymous users can't vote" when I'm logged into the site...

seems not to work as a post function of "create" (default transition to "new") - any idea?

This is so much easier than using a script, thanks Edwin

This widget could not be displayed.

The 'Assign to role' functionality you're noticing on JIRA Studio is actually from the JIRA Miscellaneous Workflow Extensions plugin. That plugin is included in JIRA Studio (see the included plugins policy).

It's unlikely that we'll be adding this in the near future. Check the comment from Roy from our product management team on a similar feature request.

Your best workaround will be to specify a role, project lead or component lead (notice that you can specify a component lead, and assign to that specific user).

I just moved to another company and recommended implementing JIRA, but in a workflow I am creating I find it no longer is possible to assign to a project role on a post function without buying the misc workflow plug-in. Before this was possible and I am sure JIRA allowed me to pick from a list of the project roles created (eg PA Function). Now it seems we are limited to project lead or component lead...which is no use whatsoever...could you please explain if I have this wrong. I cannot recommend implimenting a system that required constant additional add-ons to be procured on an annual basis to support functionality that previously existed :(

Well - remember that the same resources are available to _you_ and your new company as are available to the developers of the misc workflow plugin. So if you don't want to pay for the plugin you can always just go and write it yourself!

Of course, then you'll have to support it across all of the version changes that JIRA makes AND your company wants to upgrade to - which might be time prohibitive WRT overall cost.

This widget could not be displayed.

It depends on where you are getting this user from. For our software development projects, we have several User Picker custom fields (Analyst, Developer, Test Analysts, UAT Sign-off). There are populated on a per issue basis using the workflow. e.g.

  • When you transition from open -> analysis you get a screen which asks for an analyst and won't let you progress until one is given.
  • This value is then copied (using a post function copy field to another field from the Jira Misc Workflow Extenstions) from the Analyst field to the Assignee field
  • Workflow finally fires an Issue Assigned event.

Same happens for for Analysis -> Development (developer) and Development -> Testing (Test Analyst). if an issue fails testing, it's automatically re-assigned to the analyst as part of the failing.

You could do the same for the re-open transition and copy a value from a User Picker custiom field. If you don't want to specify the value for every issue you could set up a Per-project custom field context with different default values. This way, there could be a custom field in the background which had a different value for every project which the workflow used.

This way you could use the same workflow for different projects without having to hardcode a user in (which is always a pain to change when a user leaves or changes role)

p.s. Remember to purge your resolution field when you re-open an issue

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...

286 views 5 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