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 | ||||
---|---|---|---|---|
| ||||
{% if issue.fields.assignee %} {{ <Application User Object or String representing a Username> }} {% endif %} |
Placeholders
Placeholder | Description | Example |
---|---|---|
> | User object or username of the specific user |
|
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
- How to insert information using Nunjucks annotations
- Accessing user created custom fields
- Accessing JIRA Standard fields
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...