public class

ComponentsLeadByUserFunction

extends AbstractUserBasedFunction
java.lang.Object
   ↳ com.atlassian.jira.plugin.jql.function.AbstractJqlFunction
     ↳ com.atlassian.jira.plugin.jql.function.AbstractUserBasedFunction
       ↳ com.atlassian.jira.plugin.jql.function.ComponentsLeadByUserFunction

Class Overview

This function returns a list of components lead by a user.

This function expects zero or one argument. If zero arguments are supplied the current logged in user will be used as component lead.

Summary

Constants
String FUNCTION_COMPONENTS_LEAD_BY_USER
[Expand]
Inherited Fields
From class com.atlassian.jira.plugin.jql.function.AbstractUserBasedFunction
Public Constructors
ComponentsLeadByUserFunction(PermissionManager permissionManager, ProjectComponentManager componentManager, ProjectManager projectManager, UserUtil userUtil)
Public Methods
JiraDataType getDataType()
Protected Methods
List<QueryLiteral> getFunctionValuesList(QueryCreationContext queryCreationContext, FunctionOperand functionOperand, ApplicationUser user)
Get the function return values based on the actual user.
String getUserNotFoundMessageKey()
Get the I18n message key for the error when the passed in user does not exist.
[Expand]
Inherited Methods
From class com.atlassian.jira.plugin.jql.function.AbstractUserBasedFunction
From class com.atlassian.jira.plugin.jql.function.AbstractJqlFunction
From class java.lang.Object
From interface com.atlassian.jira.plugin.jql.function.JqlFunction

Constants

public static final String FUNCTION_COMPONENTS_LEAD_BY_USER

Constant Value: "componentsLeadByUser"

Public Constructors

public ComponentsLeadByUserFunction (PermissionManager permissionManager, ProjectComponentManager componentManager, ProjectManager projectManager, UserUtil userUtil)

Public Methods

public JiraDataType getDataType ()

Protected Methods

protected List<QueryLiteral> getFunctionValuesList (QueryCreationContext queryCreationContext, FunctionOperand functionOperand, ApplicationUser user)

Get the function return values based on the actual user. transformed into index values.

Parameters
queryCreationContext the context of query creation
functionOperand the operand to get values from
user the user
Returns
  • a List of objects that represent this Operands raw values. Cannot be null.

protected String getUserNotFoundMessageKey ()

Get the I18n message key for the error when the passed in user does not exist.

Returns
  • message key.