Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

 


You will need the following JIRA plugins:
JJUPIN
Info
titleRequired plugins
apps

Power Scripts™ for Jira (server)

Level:  INTERMEDIATE

Problem

Depending on one or more criteria one needs to decide on which way to go

...

... and we would like to assign an issue to the Department manager at a certain stage.

Solution

Create the decision table


1. Create a table with the department managers (for example named dept_managers):

Department

Manager

Production

john

Sales

mark

HR

marie

Note
titleNote

We use the user-names and not the manager's full name so we can assign them easily

Writing the code

2. Write the SIL SIL™ code (postfunction) to assign the manager and add it to an appropriate step:

...

So, in our example, if the Department custom field is set for example to 'HR', the assignee will be set to the user with the username 'marie'.

See also