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.

Logic

Check for a value on the Assignee and based on the result, assign the issue to a specific user

Snippet

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

Placeholders

Placeholder

Description

Example

<Application User Object or String representing a Username>User object or username of the specific user{{ issue.fields.project.lead }} or {{ issue.fields.project.lead.name }}

Context

The output of this snippet is an ApplicationUser or a String representing a username which you can use to set a field of User type in Set field value and Set field value of linked issues post-function.

Use cases

Reference

Filter by label (Content by label)
showLabelsfalse
max5
spacesKB
showSpacefalse
sortmodified
reversetrue
typepage
cqllabel = "jmwe-nunjucks" and type = "page" and space = "KB"
labelsjmwe-nunjucks jmwe-cloud

...