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.

...

(warning) You need to select "Treat as JSON" option

Context

You would typically The output of this code is either a User object or a String representing a username.

When it returns a User object, you would use this code:

  • To set a User picker field in :one in one of the Set Field Value post-functions

When it returns a String representing a username, you would use this code in: 

  • 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

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

...