Versions Compared

Key

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

Abstract

This code snippet assigns the issue to a specific user if the issue is unassigned.

...

Code Block
languagejs
linenumberstrue
{% if issue.fields.assignee.name == null %}
{{ <Application User Object or a String representing a Username> }}
{% endif %}

...

  • To set a User picker field in :
    • one of the Set Field Value post-functions
    • one of the Transition issue post-functions on the transition screen, if any
    • the Create issue post-function under Set fields of new issue section
    In a conditional execution script to
    • Run a post-function
    • Run a condition
    • Run a validator
    • Unlink issues

Use cases

A typical use case would be to assign the issue to the Project lead if it is unassigned - Assign the issue to the Project lead, if the issue is unassigned on creation

...