You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

The Assign to Project Role post function assigns an issue to a user in a project role. In case there is more than one user with the project role, you can set a user as default for a project role in a project.

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

Project role

Select the project role the user should retrieve from.

You can choose between every available project role within your Jira.

If you select a project role that is not available in the current project, the issue won't be reassigned.

Assignee

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

Choose between:

  • 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 the possibility to additionally enter a JQL parser expression.

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

When not JQL is provided, it will be searched for issues assigned to a user in the selected project role that have an empty resolution.

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

project = %{issue.project.key}
Conditional execution

You can optionally specify a logical expression to define the circumstances (or conditions) under which the post function should be executed.

The result of the logical expression must return a boolean value of either:

  • true → the post function will be executed
  • false → the post function will not be executed

Using the conditional operator, even complex or multi-layered conditions can be constructed.

Make sure to learn more about defining logical expressions and browse through the various examples here: Logical mode

Run as

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


Use cases and examples


If you still have questions, feel free to refer to our support team.