This post function assigns an issue to a user in a project role. In the likely case that there is more than one user in the specified project role, you can specify a default user using either 

You can use this functionality with every post-function in the plugin that allows you to write on any field of type User or Multi-User.


Configuration

Select the project role containing the users the new assignee should be retrieved from.

If you select a project role that is not available in the current project, the issue will not reassigned.



Select the option to define the user who will be assigned to the issue. Choose between:

OptionDescription
  • Default user for project role

  • Default user for project role, except if current assignee is already in project role

  • Last user in project who has had the issue assigned

  • Last user in project role who has had the issue assigned, or lacking that to default user for project role

  • Previous user in project role who has had the issue assigned

  • Previous user in project role who has had the issue assigned, or lacking that to default user for project role

  • Random user among those in project role, except if current assignee is already in project role

  • Random user among those in project role different from current assignee

  • Least busy user om project role

  • Least busy user in project role, except if current assignee is already in project role

  • Next user in selected and project role according to round-robin algorithm

  • Next user in selected and project role according to round-robin algorithm, except if current assignee is already in project role


When selecting one of the "Least busy user" options you have to additionally enter a JQL parser expression.

You can use this expression to further customize the way how the least busy user should be received.

You could e.g. restrict the search to the current project by entering:

project = %{issue.project.key}

or to a specific issue type:

type in ("Bug", "Feature", "Improvement")





Choose which user* will be used to execute this post function. By default it is set to the Current user.



Use cases and examples




Tech review

Style guide



Short descriptionAssign the issue to a specific user in a project role.
Label