public interface ValueBuilder
ConditionBuilder
. For example,
a call to ConditionBuilder.eq()
will return a ValueBuilder that can be used to specify which value should be matched
by the equals operator.
Each JQL condition is essentially structured as name operator operand
. When this object is created, it has an
implied "name" and "operator". This object can be used to complete the current JQL condition by creating the operand. For example,
JqlQueryBuilder.affectedVersion().eq()
creates a ValueBuilder whose implied name is "affectedVersion" and whose operator
is "=" that can used to complete the JQL condition by filling in the operand.
Generally, it is not possible to passs nulls, empty collections, empty arrays, collections that contain nulls, or arrays
that contain nulls to the methods on this interface. Any exceptions to these argument conditions are documented on the method concerned.
Passing a method a bad argument will result in a IllegalArgumentException
.
JQL values are of two types String
and Long
. For fields that are resolvable by both Id's and Names (e.g.
projects, versions, issue types, components, options etc), the order of resolution depends on the value type. If the JQL
value type is long, JIRA will first attempt to find the domain object by Id, if that fails, it will attempt to find
the domain object by name with the string value of the long. If the JQL value type is a String, JIRA will first try to find
the domain object by name, if that fails AND the string can be parsed into a number, JIRA attempts to find the domain object by
id with that number.
JqlClauseBuilder
,
ConditionBuilder
,
JqlQueryBuilder
Modifier and Type | Method and Description |
---|---|
JqlClauseBuilder |
date(Date date)
Specify the value that must me matched using the current operator.
|
JqlClauseBuilder |
dates(Collection<Date> dates)
Specify the values that must be matched using the current operator.
|
JqlClauseBuilder |
dates(Date... dates)
Specify the values that must be matched using the current operator.
|
JqlClauseBuilder |
empty()
Finish the current condition such that it looks for empty values.
|
JqlClauseBuilder |
function(String funcName)
Finish the current condition such that it matches the value(s) returned from the passed function.
|
JqlClauseBuilder |
function(String funcName,
Collection<String> args)
Finish the current condition such that it matches the value(s) returned from the passed function.
|
JqlClauseBuilder |
function(String funcName,
String... args)
Finish the current condition such that it matches the value(s) returned from the passed function.
|
JqlClauseBuilder |
functionCascaingOption(String parent)
Finish the current condition such that it matches the value(s) returned from the "cascadingOption" function.
|
JqlClauseBuilder |
functionCascaingOption(String parent,
String child)
Finish the current condition such that it matches the value(s) returned from the "cascadingOption" function.
|
JqlClauseBuilder |
functionCascaingOptionParentOnly(String parent)
Finish the current condition such that it matches the value(s) returned from the "cascadingOption" function.
|
JqlClauseBuilder |
functionCurrentLogin()
Finish the current condition such that it matches the value returned from the "currentLogin" function.
|
JqlClauseBuilder |
functionCurrentUser()
Finish the current condition such that it matches the value returned from the "currentUser" function.
|
JqlClauseBuilder |
functionIssueHistory()
Finish the current condition such that it matches the values returned from the "issueHistory" function.
|
JqlClauseBuilder |
functionLastLogin()
Finish the current condition such that it matches the value returned from the "lastLogin" function.
|
JqlClauseBuilder |
functionLinkedIssues(String issue,
String... issueLinkTypes)
Finish the current condition such that it matches the value(s) returned from the "linkedIssues" function.
|
JqlClauseBuilder |
functionMembersOf(String groupName)
Finish the current condition such that it matches the values returned from the "membersOfFunction" function.
|
JqlClauseBuilder |
functionNow()
Finish the current condition such that it matches the value returned from the "now" function.
|
JqlClauseBuilder |
functionReleasedVersions(String... projects)
Finish the current condition such that it matches the values returned from the "releasedVersions" function.
|
JqlClauseBuilder |
functionRemoteLinksByGlobalId(String... globalIds)
Finish the current condition such that it matches the value(s) returned from the "remoteLinksByGlobalId" function.
|
JqlClauseBuilder |
functionStandardIssueTypes()
Finish the current condition such that it matches the values returned from the "standardIssueTypes" function.
|
JqlClauseBuilder |
functionSubTaskIssueTypes()
Finish the current condition such that it matches the values returned from the "subTaskIssueTypes" function.
|
JqlClauseBuilder |
functionUnreleasedVersions(String... projects)
Finish the current condition such that it matches the values returned from the "unreleasedVersions" function.
|
JqlClauseBuilder |
functionUpdatedBy(String user)
Finish the current condition that it matches the values of issues ids updated by given user (with optional from and from-to time criteria).
|
JqlClauseBuilder |
functionVotedIssues()
Finish the current condition such that it matches the value(s) returned from the "votedIssues" function.
|
JqlClauseBuilder |
functionWatchedIssues()
Finish the current condition such that it matches the value(s) returned from the "watchedIssues" function.
|
JqlClauseBuilder |
number(Long value)
Finish the current condition such that it matches the passed value.
|
JqlClauseBuilder |
numbers(Collection<Long> values)
Finish the current condition such that it matches the passed values.
|
JqlClauseBuilder |
numbers(Long... values)
Finish the current condition such that it matches the passed values.
|
JqlClauseBuilder |
operand(Operand operand)
Finish the current condition such that it matches the passed operand.
|
JqlClauseBuilder |
operands(Collection<? extends Operand> operands)
Finish the current condition such that it matches the passed operands.
|
JqlClauseBuilder |
operands(Operand... operands)
Finish the current condition such that it matches the passed operands.
|
JqlClauseBuilder |
string(String value)
Finish the current condition such that it matches the passed value.
|
JqlClauseBuilder |
strings(Collection<String> values)
Finish the current condition such that it matches the passed values.
|
JqlClauseBuilder |
strings(String... values)
Finish the current condition such that it matches the passed values.
|
JqlClauseBuilder string(String value)
currentName currentOperator value
.value
- the value of the JQL condition.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder strings(String... values)
currentName currentOperator (values)
.values
- the values of the JQL condition.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder strings(Collection<String> values)
currentName currentOperator (values)
.values
- the values of the JQL condition.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder number(Long value)
current Namecurrent Operator value
.value
- the value of the JQL condition.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder numbers(Long... values)
currentName currentOperator (values)
.values
- the values of the JQL condition.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder numbers(Collection<Long> values)
currentName currentOperator (values)
.values
- the values of the JQL condition.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder operand(Operand operand)
currentName currentOperator operand
.operand
- the value of the JQL condition.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder operands(Operand... operands)
currentName currentOperator (operands)
.operands
- the values of the JQL condition.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder operands(Collection<? extends Operand> operands)
currentName currentOperator (operands)
.operands
- the values of the JQL condition.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder empty()
currentName currentOperator EMPTY
.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder function(String funcName)
currentName currentOperator funcName()
.funcName
- the name of the function whose value(s) must be matched.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder function(String funcName, String... args)
currentName currentOperator funcName(arg1, arg2, arg3, ..., arg4)
.funcName
- the name of the function whose value(s) must be matched.args
- the arguments to be passed to the function. Cannot be null or contain null values.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder function(String funcName, Collection<String> args)
currentName currentOperator funcName(arg1, arg2, arg3, ..., arg4)
.funcName
- the name of the function whose value(s) must be matched.args
- the arguments to be passed to the function. Cannot be null or contain null values.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionStandardIssueTypes()
currentName currentOperator standardIssueTypes()
.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionSubTaskIssueTypes()
currentName currentOperator subTaskIssueTypes()
.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionMembersOf(String groupName)
currentName currentOperator membersOf("groupName")
to the query.groupName
- the name of the group to search. Cannot be null.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionCurrentUser()
currentName currentOperator currentUser()
to the query.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionIssueHistory()
currentName currentOperator isssueHistory()
to the query.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionReleasedVersions(String... projects)
currentName currentOperator releasedVersions(projects)
to the query.projects
- the projects to add to the condition. Each value can be a project's name (e.g. "JIRA), its key ("e.g. JRA") or its
internal JIRA id (e.g. "10000"). Must not be null or contain any null values.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionUnreleasedVersions(String... projects)
currentName currentOperator unreleasedVersions(projects)
to the query.projects
- the projects to add to the condition. Each value can be project's name (e.g. "JIRA), its key ("e.g. JRA") or its
internal JIRA id (e.g. "10000"). Must not be null or contain any null values.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionNow()
currentName currentOperator now()
to the query.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionWatchedIssues()
currentName currentOperator watchedIssues()
to the query.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionVotedIssues()
currentName currentOperator votedIssues()
to the query.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionLinkedIssues(String issue, String... issueLinkTypes)
currentName currentOperator issueType(issue, issueLikeTyes)
to the query.issue
- the issue whose links should be followed. Can be an issue key or issue id as a string. Cannot be null.issueLinkTypes
- the list of issueLinkTypes to follow. An empty value indicates that all links should be followed. Cannot contain nulls.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionUpdatedBy(String user)
user
- - user whose activity should concern the returned issuesJqlClauseBuilder functionRemoteLinksByGlobalId(String... globalIds)
globalIds
.
It essentially adds the condition currentName currentOperator remoteLinksByGlobalId(globalIds)
to the query.globalIds
- the globalIds to be used to search for remote issue links and then the issues that are associated with those links.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionCascaingOption(String parent)
currentName currentOperator cascadingOption(parent).
parent
- the first argument to the "cascadingOption" function. Cannot be null.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionCascaingOption(String parent, String child)
currentName currentOperator cascadingOption(parent, child).
parent
- the first argument to the "cascadingOption" function. Cannot be null.child
- the second argument to the "cascadingOption" function. Cannot be null.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionCascaingOptionParentOnly(String parent)
currentName currentOperator cascadingOption(parent, "none").
parent
- parent the first argument to the "cascadingOption" function. Cannot be null.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionLastLogin()
IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder functionCurrentLogin()
IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder date(Date date)
currentName currentOperator date
.date
- the value of the JQL condition.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder dates(Date... dates)
currentName currentOperator (dates)
.dates
- the values of the JQL condition.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.JqlClauseBuilder dates(Collection<Date> dates)
currentName currentOperator (dates)
.dates
- the values of the JQL condition.IllegalStateException
- if it is not possible to add a JQL condition given the current state of the builder.Copyright © 2002-2022 Atlassian. All Rights Reserved.