Skip to main content

Jira Expressions - User

A Jira Expressions - User field stores the person that your Jira expression returns, such as the parent's assignee.

The value is a user, so you can search it with currentUser().

FieldCraft runs the expression with the app's access. A Jira admin must acknowledge app access first.

What you see​

On the work item, you see the person's avatar and name.

If the expression returns nothing, you see None.

Lists show the person's name. Search and exports use the stored user.

Settings​

SettingWhat it doesDefault
Jira Expression:The expression that FieldCraft runs for each work itemNone, so you write one

The expression must return a user, such as issue.assignee, or an account ID. Anything else leaves the field empty.

Example: the parent's assignee​

You want people to find the sub-tasks of the stories assigned to them.

  1. Open the configuration page of a Jira Expressions - User field.

  2. In Jira Expression:, enter this expression, or copy the Parent's assignee snippet:

    issue.parent?.assignee
  3. Select I understand, and the values may be shown to everyone who can see the work item, and select Save.

Result: A sub-task of a story assigned to Alex shows Alex. A work item without a parent shows None.

For the editor, snippets and checks, see Write a Jira expression.

Search with JQL​

JQL compares the stored user, like any person field.

To find work items whose parent is assigned to you, use:

"Parent's assignee" = currentUser()

To find work items without a value, use "Parent's assignee" IS EMPTY.

When the value updates​

FieldCraft runs the expression again when the work item changes or when you open it. See Jira expressions.

A change of the parent's assignee reaches the field only then.

Things to know​

  • Until a Jira admin acknowledges app access, the field keeps its last value.

  • For a person from the parent or the epic that follows every change, use Parent Field - User.

  • For the author of a comment, use Commenter. It never uses internal notes unless you choose them.