com.atlassian.jira.jql.builder.JqlClauseBuilder |
A builder used to construct the Where Clause
portion of a JQL Query
in a fluent programming
structure. JQL queries can be defined as one or more terminal clauses, seperated by logical operators, where terminal clauses
define value conditions on specific fields.
reporter()
)
and short cuts for common terminal clauses (e.g. which produce the terminal clause {@code resolution = Unresolved
.
But also allows the programmer to define his terminal clause components manually, for example
builder.field("cf[100]").in().strings("jql", "rocks").buildQuery()
, this is useful for custom fields.
To build Where Clauses with more than one terminal clause, the logical operators must be defined by the programmer between
each call to a terminal clause method, or a default operator must be set. For example to produce the JQL project = HSP and issuetype = bug
the builder would be used as such builder.project("HSP").and().issueType("bug").buildQuery()
or
builder.defaultAnd().project("HSP").issueType("bug").buildQuery()
. Not defining the operator, such as
builder.project("HSP").issueType("bug").buildQuery()
will cause an illegal state exception.
Different logical operators can be specified by the programmer by using the ConditionBuilder
returned by the field
level methods such as project()
. For instance to create the terminal clause component != searching
the programmer would use
the builder as such builder.component().notEq().string("searching")
.
By default the builder uses the standard order of precedence. However if the programmer wishes to define their own order,
they can make use of the sub()
and endsub()
methods, which effectively add opening and closing parenthesis to
the JQL respectively. For instance to create the JQL (resolution is unresolved and assignee is empty) or resolution = fixed
the programmer would use the builder as such builder.sub().field("resolution").and.assigneeIsEmpty().endsub().or().resolution().eq("fixed")
Generally, it is not possible to passs nulls, empty collections, empty arrays, collections that contain nulls, or arrays
that contain nulls to the method on the interface. Any exceptions to these argument conditions are documented on the method concern.
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.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Add the passed JQL condition to the query being built.
| |||||||||||
Add the JQL condition
clauseName operator operand to the query being built. | |||||||||||
Add the JQL condition
clauseName in (operands) to the query being built. | |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the passed JQL name. | |||||||||||
Add the JQL condition
clauseName operator (operands) to the query being built. | |||||||||||
Add the JQL condition
clauseName = operand to the query being built. | |||||||||||
Add the JQL condition
clauseName in (operands) to the query being built. | |||||||||||
Add the JQL condition
clauseName operator (operands) to the query being built. | |||||||||||
Add the JQL condition
clauseName in (dates) to the query being built. | |||||||||||
Add the JQL condition
clauseName operator (clauseValues) to the query being built. | |||||||||||
Add the JQL condition
clauseName in (dates) to the query being built. | |||||||||||
Add the JQL condition
clauseName operator (clauseValues) to the query being built. | |||||||||||
Add the JQL condition
clausename operator date to the query being built. | |||||||||||
Add a condition range condition to the current query for the passed dates.
| |||||||||||
Add an "IS EMPTY" condition to the current query for the passed JQL clause.
| |||||||||||
Add the JQL condition
clauseName operator functionName() to the query being built. | |||||||||||
Add the JQL condition
clauseName = functionName() to the query being built. | |||||||||||
Add the JQL condition
clauseName = functionName(arg1, arg2, arg3, ..., argN) to the query being built. | |||||||||||
Add the JQL condition
clauseName = functionName(arg1, arg2, arg3, ..., argN) to the query being built. | |||||||||||
Add the JQL condition
clauseName operator functionName(arg1, arg2, arg3, ..., argN) to the query being
built. | |||||||||||
Add the JQL condition
clauseName operator functionName(arg1, arg2, arg3, ..., argN) to the query being
built. | |||||||||||
Add the JQL condition
clauseName operator clauseValue to the query being built. | |||||||||||
Add the JQL condition
clauseName operator (clauseValues) to the query being built. | |||||||||||
Add the JQL condition
clauseName operator (clauseValues) to the query being built. | |||||||||||
Add the JQL condition
clauseName = clauseValue to the query being built. | |||||||||||
Add the JQL condition
clauseName in (clauseValues) to the query being built. | |||||||||||
Add the JQL condition
clauseName in (clauseValues) to the query being built. | |||||||||||
Add a condition range condition to the current query for the passed values.
| |||||||||||
Add a condition range condition to the current query for the passed values.
| |||||||||||
Add the JQL condition
clauseName operator (clauseValues) to the query being built. | |||||||||||
Add the JQL condition
clauseName operator (clauseValues) to the query being built. | |||||||||||
Add the JQL condition
clauseName in (clauseValues) to the query being built. | |||||||||||
Add the JQL condition
clauseName in (clauseValues) to the query being built. | |||||||||||
Add the JQL condition
clauseName = "clauseValue" to the query being built. | |||||||||||
Add the JQL condition
clauseName operator "clauseValue" to the query being built. | |||||||||||
Add a condition range condition to the current query for the passed values.
| |||||||||||
Add a condtion to the query that finds the issues associated with a particular affected version.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the affected version. | |||||||||||
Add a condition to the query that finds the issues associated particular set of affected versions.
| |||||||||||
Adds adds a condition to the query to find issues with no assigned affected version.
| |||||||||||
Add the JQL "AND" operator to the JQL expression currently being built.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the issue's assignee. | |||||||||||
Add a condition to the query that finds all issues that are assigned to users in a particular group.
| |||||||||||
Add a condition to the query that finds all issues that are assigned to the current user.
| |||||||||||
Add a condition to the query to find all unassigned issues.
| |||||||||||
Add a condition to the query that finds issues that are assigned to the passed user.
| |||||||||||
Create the JQL clause the builder has currently constructed.
| |||||||||||
Call this method to build a
Query using the current builder. | |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
issue's in a particular project category. | |||||||||||
Add a condition to the query that finds the issues from projects within a list of project categories.
| |||||||||||
Reset the builder to its empty state.
| |||||||||||
Add a condition to the query that finds the issues that match the passed comment.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
issue comments. | |||||||||||
Add a condition to the query to find all issues with particular components.
| |||||||||||
Add a condition to the query to find all issues with particular components.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the issue's component. | |||||||||||
Add a condition to the query to find all issues that have not component assigned.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
issue's creation date. | |||||||||||
Add a condition to the query that finds the issues that were created after the passed date.
| |||||||||||
Add a condition to the query that finds the issues that were created after the passed date.
| |||||||||||
Add a condition to the query that finds the issues that where created between the passed dates.
| |||||||||||
Add a condition to the query that finds the issues that where created between the passed dates.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the issue's current estimate. | |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
a custom field with the passed id. | |||||||||||
Tell the builder to combine JQL conditions using the "AND" operator when none has been specified.
| |||||||||||
Tell the builder to stop injecting JQL "AND" or "OR" operators automatically between the generated JQL
conditions.
| |||||||||||
Tell the builder to combine JQL conditions using the "OR" operator when none has been specified.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
issue descriptions. | |||||||||||
Add a condition to the query that finds the issues that match the passed description.
| |||||||||||
Add a condition to the query that finds the issues that have no description.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
issue's due date. | |||||||||||
Add a condition to the query that finds the issues that are due after the passed date.
| |||||||||||
Add a condition to the query that finds the issues that are due after the passed date.
| |||||||||||
Add a condition to the query that finds the issues that where due between the passed dates.
| |||||||||||
Add a condition to the query that finds the issues that where due between the passed dates.
| |||||||||||
Call this to get a handle on the associated
JqlQueryBuilder . | |||||||||||
End the current sub JQL expression.
| |||||||||||
Add a condition to the query that finds the issues that match the passed environment.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
issue environments. | |||||||||||
Add a condition to the query that finds the issues that have no environment.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the passed name. | |||||||||||
Add a condition to the query that finds the issues associated particular set of fix versions.
| |||||||||||
Add a condition to the query that finds the issues associated particular set of fix versions.
| |||||||||||
Add a condtion to the query that finds the issues associated with a particular fix version.
| |||||||||||
Add a condtion to the query that finds the issues associated with a particular fix version.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the fix version. | |||||||||||
Adds adds a condition to the query to find issues with no assigned fix version.
| |||||||||||
Add a condition to the query that will find all issues with the passed key.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the issue's id or key. | |||||||||||
Add a condition to the query that will find all issues currently within the user's history.
| |||||||||||
Add a condition to the query that will find all issues the user has voted on.
| |||||||||||
Add a condition to the query that will find all issues currently watched by the user.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the issue's parent. | |||||||||||
Add a condition to the query that will find all issues that have the passed issues as parents.
| |||||||||||
Add a condition to the query that finds the issues of a particular type.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
issue types. | |||||||||||
Add a condition to the query that finds the "standard" issue types.
| |||||||||||
Add a condition to the query that finds the "sub-task" issue types.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the issue's labels. | |||||||||||
Add a condition to the query to find all issues with particular labels.
| |||||||||||
Add a condition to the query to find all issues that have no labels.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
issue's last viewed date. | |||||||||||
Add a condition to the query that finds the issues that where viewed after the passed date (if issue is
stored in history kept).
| |||||||||||
Add a condition to the query that finds the issues that where last viewed after the passed date (if issue is
stored in history kept).
| |||||||||||
Add a condition to the query that finds the issues that where last viewed between the passed dates.
| |||||||||||
Add a condition to the query that finds the issues that where viewed between the passed dates.
| |||||||||||
Add a condition to the query that will find all issues with the passed security levels.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the issue's security level. | |||||||||||
Add the JQL "NOT" operator to the JQL expression currently being built.
| |||||||||||
Add the JQL "OR" operator to the JQL expression currently being built.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the issue's original estimate. | |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the priority. | |||||||||||
Add a condition to the query that finds the issues associated particular set of priorities.
| |||||||||||
Add a condition to the query that finds the issues within a particular project.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
an issue's project. | |||||||||||
Add a condition to the query that finds the issues within a particular project.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the issue's reporter. | |||||||||||
Add a condition to the query that finds all issues that were reported by users in a particular group.
| |||||||||||
Add a condition to the query that finds all issues that were reported by the current user.
| |||||||||||
Add a condition to the query to find issues without a reporter.
| |||||||||||
Add a condition to the query that finds issues that where reported by the passed user.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
resolution. | |||||||||||
Add a condition to the query that finds the issues associated particular set of resolutions.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
issue's resolution date. | |||||||||||
Add a condition to the query that finds the issues that were reolved after the passed date.
| |||||||||||
Add a condition to the query that finds the issues that were resolved after the passed date.
| |||||||||||
Add a condition to the query that finds the issues that where resolved between the passed dates.
| |||||||||||
Add a condition to the query that finds the issues that where resolved between the passed dates.
| |||||||||||
Return a
ConditionBuilder that can be used to add saved filters as conditions
to the query. | |||||||||||
Add a condition to the query that will inclue the results from the passed filters in the search.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
status. | |||||||||||
Add a condition to the query that finds the issues associated particular set of statuses.
| |||||||||||
Create a new sub expression in the current JQL.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
issue summaries. | |||||||||||
Add a condition to the query that finds the issues match the passed summary.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the issue's timespent field. | |||||||||||
Add a condition to query that finds the issues that have not been resolved.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
issue's updated date. | |||||||||||
Add a condition to the query that finds the issues that were updated after the passed date.
| |||||||||||
Add a condition to the query that finds the issues that were updated after the passed date.
| |||||||||||
Add a condition to the query that finds the issues that where updated between the passed dates.
| |||||||||||
Add a condition to the query that finds the issues that where updated between the passed dates.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the number of votes on an issue. | |||||||||||
Add a condition to the query that finds all issues that were voted for by users in a particular group.
| |||||||||||
Add a condition to the query that finds all issues that were voted for by the current user.
| |||||||||||
Add a condition to the query to find issues without any votes.
| |||||||||||
Add a condition to the query that finds issues that are voted for by the passed user.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the number of votes on an issue. | |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the number of watches on an issue. | |||||||||||
Add a condition to the query that finds all issues that were watched by users in a particular group.
| |||||||||||
Add a condition to the query that finds all issues that were watched by the current user.
| |||||||||||
Add a condition to the query to find issues without any watchers.
| |||||||||||
Add a condition to the query that finds issues that are watched by the passed user.
| |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the number of watches on an issue. | |||||||||||
Return a
ConditionBuilder that can be used to build a JQL condition for
the issue's work ratio field. |
Add the passed JQL condition to the query being built.
clause | the clause to add. Must not be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName operator operand
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
operand | defines an operand that will serve as the clause value. Must not be null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName in (operands)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operands | operands values for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the passed JQL name.
clauseName | the name of the JQL condition to add. |
---|
Add the JQL condition clauseName operator (operands)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
operands | values for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName = operand
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operand | defines an operand that will serve as the clause value. Must not be null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName in (operands)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operands | operands values for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName operator (operands)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
operands | values for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName in (dates)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
dates | dates for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName operator (clauseValues)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
dates | date values for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName in (dates)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
dates | dates for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName operator (clauseValues)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
dates | date values for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clausename operator date
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
date | the date for the condition. Must not be null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition range condition to the current query for the passed dates. This essentially adds the query clauseName >= startDate AND clauseName <= endDate
to the query being built.
null
. Passing a non-null startDate
with a null endDate
will add the condition clauseName >= startDate
. Passing a non-null endDate
with a null startDate
will add the condition clauseName <= endDate
. Passing a null
startDate
and null endDate
is illegal.clauseName | name of the clause in the condition. Must not be null. |
---|---|
startDate | the date for the start of the range. May be null if endDate is not null. |
endDate | the date for the end of the range. May be null if startDate is not null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|---|
IllegalArgumentException | if both startDate and endDate are null.
|
Add an "IS EMPTY" condition to the current query for the passed JQL clause. This essentially adds the query
clauseName IS EMPTY
to the query being built.
clauseName | the clause name for the new condition. Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName operator functionName()
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
functionName | name of the function to call. Must not be null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName = functionName()
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
functionName | name of the function to call. Must not be null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName = functionName(arg1, arg2, arg3, ..., argN)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
functionName | name of the function to call. Must not be null. |
args | the arguments to add to the function. 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. |
---|
Add the JQL condition clauseName = functionName(arg1, arg2, arg3, ..., argN)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
functionName | name of the function to call. Must not be null. |
args | the arguments to add to the function. 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. |
---|
Add the JQL condition clauseName operator functionName(arg1, arg2, arg3, ..., argN)
to the query being
built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
functionName | name of the function to call. Must not be null. |
args | the arguments to add to the function. 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. |
---|
Add the JQL condition clauseName operator functionName(arg1, arg2, arg3, ..., argN)
to the query being
built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
functionName | name of the function to call. Must not be null. |
args | the arguments to add to the function. 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. |
---|
Add the JQL condition clauseName operator clauseValue
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
clauseValue | long value for the condition. Must not be null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName operator (clauseValues)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
clauseValues | long values for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName operator (clauseValues)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
clauseValues | long values for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName = clauseValue
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
clauseValue | long value for the condition. Must not be null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName in (clauseValues)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
clauseValues | long values. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName in (clauseValues)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
clauseValues | long values for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition range condition to the current query for the passed values. This essentially adds the query clauseName >= start AND clauseName <= end
to the query being built.
null
. Passing a non-null start
with a null end
will add the condition clauseName >=
start
. Passing a non-null end
with a null start
will add the
condition clauseName <= end
. Passing a null start
and null end
is illegal.clauseName | name of the clause in the condition. Must not be null. |
---|---|
start | the start of the range. May be null if end is not null. |
end | the end of the range. May be null if start is not null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|---|
IllegalArgumentException | if both start and end are null.
|
Add a condition range condition to the current query for the passed values. This essentially adds the query clauseName >= start AND clauseName <= end
to the query being built.
null
. Passing a non-null start
with a null end
will add the condition clauseName >=
start
. Passing a non-null end
with a null start
will add the
condition clauseName <= end
. Passing a null start
and null end
is illegal.clauseName | name of the clause in the condition. Must not be null. |
---|---|
start | the start of the range. May be null if end is not null. |
end | the end of the range. May be null if start is not null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|---|
IllegalArgumentException | if both start and end are null.
|
Add the JQL condition clauseName operator (clauseValues)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
clauseValues | string values for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName operator (clauseValues)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
clauseValues | string values for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName in (clauseValues)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
clauseValues | string values for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName in (clauseValues)
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
clauseValues | string values for the condition. Must not be null, empty or contain any null values. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName = "clauseValue"
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
clauseValue | string value for the condition. Must not be null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL condition clauseName operator "clauseValue"
to the query being built.
clauseName | name of the clause in the condition. Must not be null. |
---|---|
operator | one of the enumerated Operator s. Must not be null. |
clauseValue | string value for the condition. Must not be null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition range condition to the current query for the passed values. This essentially adds the query clauseName >= start AND clauseName <= end
to the query being built.
null
. Passing a non-null start
with a null end
will add the condition clauseName >=
start
. Passing a non-null end
with a null start
will add the
condition clauseName <= end
. Passing a null start
and null end
is illegal.clauseName | name of the clause in the condition. Must not be null. |
---|---|
start | the start of the range. May be null if end is not null. |
end | the end of the range. May be null if start is not null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|---|
IllegalArgumentException | if both start and end are null.
|
Add a condtion to the query that finds the issues associated with a particular affected version. This essentially
adds the JQL condition affectedVersion = "value"
to the query being built.
version | the version to search for. Can be passed as its name (e.g. "1.2") or the string representation of its internal JIRA ID (e.g. "102020"). Must not be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the affected version.
Add a condition to the query that finds the issues associated particular set of affected versions. This
essentially adds the JQL condition affectedVersion in (versions)
to the query being built.
versions | the affected versions to search for. Each version can be specified either by its name (e.g. "1.2") or by its JIRA ID as a string (e.g. "10000"). Must not be null, empty or contain any null values. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Adds adds a condition to the query to find issues with no assigned affected version. This essentially adds the
JQL condition affectedVersion IS EMPTY
to the query being built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add the JQL "AND" operator to the JQL expression currently being built. The builder takes into account operator
precendence when generating the JQL expression, and as such, the caller may need to group JQL conditions using
the sub()
and endsub()
calls. For example, builder.not().affectedVersion("11").and().effectedVersion("12")
produces the JQL NOT (affectedVersion = "11") and affectedVersion = "12"
as the "NOT"
operator
has a higher precedence than "AND". On the other hand, builder.not().sub().affectedVersion("11").and().effectedVersion("12").endsub()
produces the JQL NOT(affectedVersion = "11" andaffectedVersion = "12")
.
IllegalStateException | if it is not possible to add the AND operator given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the issue's assignee.
Add a condition to the query that finds all issues that are assigned to users in a particular group. This essentially
adds the condition assignee in memboersOf("groupName")
to the query being built.
groupName | the group for the condition. Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds all issues that are assigned to the current user. This essentially adds the
condition assignee = currentUser()
to the query being built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query to find all unassigned issues. This essentially adds the condition assignee IS EMPTY
to the query being built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds issues that are assigned to the passed user. This essentially adds the
condition assignee = userName
to the query being built.
userName | the username to search for. Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Create the JQL clause the builder has currently constructed. The builder can still be used after this method is called.
IllegalStateException | if it is not possible to build a valid JQL query given the state of the builder. |
---|
Call this method to build a Query
using the current builder. When endWhere()
is not null, this
equates to calling endWhere().buildQuery()
. When endWhere()
is null, this equates to calling
new QueryImpl(buildClause())
.
IllegalStateException | if it is not possible to build the current query given the state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
issue's in a particular project category. An issue is in a project category only when it is in a project that is
part of the category.
Add a condition to the query that finds the issues from projects within a list of project categories. This
essentially adds the JQL condition category in (categories)
to the query being built.
categories | the JIRA project categories for the condition. Each project can be specified by its name (e.g. "Atlassian Products") or by its JIRA ID as a string (e.g. "10000"). Must not be null, empty or contain any null values. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues that match the passed comment. This essentially adds the
condition comment ~ "value"
to the query being built.
value | the value of the condition. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
issue comments.
Add a condition to the query to find all issues with particular components. This essentially adds the JQL
condition component in (components)
to the query.
components | the ids of the components to search for. Must not be null, contain nulls or be empty. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query to find all issues with particular components. This essentially adds the JQL
condition component in (components)
to the query.
components | the JIRA components to search for. Each component can be specified by its name (e.g. "Web") or by its JIRA ID as a string (e.g. "10000"). Must not be null, empty or contain any null values. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the issue's component.
Add a condition to the query to find all issues that have not component assigned. This essentially adds the JQL
condition component IS EMTPY
to the query.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
issue's creation date.
Add a condition to the query that finds the issues that were created after the passed date. This essentially
adds the query created >= startDate
to the query being built.
startDate | the date that issues must be created after. Can be a date (e.g. "2008-10-23") or a period (e.g. "-3w"). Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues that were created after the passed date. This essentially
adds the query created >= startDate
to the query being built.
startDate | the date that issues must be created after. Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues that where created between the passed dates. This essentially
adds the query created >= startDateString AND created <= endDateString
to the query being built.
null
. Passing a
non-null startDateString
with a null endDateString
will add the condition created >=
startDateString
. Passing a non-null endDateString
with a null startDateString
will add the
condition created <= endDateString
. Passing a null startDateString
and null endDateString
is illegal.startDateString | the date that issues must be created on or after. Can be a date (e.g. "2008-10-23") or a
period (e.g. "-3w"). May be null if endDateString is not null. |
---|---|
endDateString | the date that issues must be created on or before. Can be a date (e.g. "2008-10-23") or a
period (e.g. "-3w"). May be null if startDateString is not null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|---|
IllegalArgumentException | if both startDateString and endDateString are null.
|
Add a condition to the query that finds the issues that where created between the passed dates. This essentially
adds the query created >= startDate AND created <= endDate
to the query being built.
null
. Passing a non-null
startDate
with a null endDate
will add the condition created >= startDate
. Passing a
non-null endDate
with a null startDate
will add the condition created <= endDate
.
Passing a null startDate
and null endDate
is illegal.startDate | the date that issues must be created on or after. May be null if endDate is not null. |
---|---|
endDate | the date that issues must be created on or before. May be null if startDate is not null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|---|
IllegalArgumentException | if both startDate and endDate are null.
|
Return a ConditionBuilder
that can be used to build a JQL condition for
the issue's current estimate.
Return a ConditionBuilder
that can be used to build a JQL condition for
a custom field with the passed id.
id | the ID for the custom field. Cannot be null. |
---|
Tell the builder to combine JQL conditions using the "AND" operator when none has been specified. Normally the
caller must ensure that a call to either and()
or or()
is placed between calls to create JQL
conditions. Calling this method on the builder tells it to automatically add a JQL "AND"
between JQL conditions when no calls to either and
or or
have been made. This mode will remain
active until one of defaultNone()
, defaultOr()
or clear()
is called.
and
or or
to overide the default
operator for the current condition.
For example builder.where().assigneeIsEmpty().or().defaultAnd().reporterIsCurrentUser().affectedVersion("10.5").defaultOr().issueType("bug").buildQuery()
will build the JQL query "assignee is empty or reporter = currentUser() and affectedVersion = '10.5' or issuetype = bug".Tell the builder to stop injecting JQL "AND" or "OR" operators automatically between the generated JQL
conditions. This essentially turns off the behaviour started by calling either
defaultAnd()
or defaultOr()
.
Tell the builder to combine JQL conditions using the "OR" operator when none has been specified. Normally the
caller must ensure that a call to either and()
or or()
is placed between calls to create JQL
conditions. Calling this method on the builder tells it to automatically add a JQL "OR"
between JQL conditions when no calls to either and
or or
have been made. This mode will remain
active until one of defaultNone()
, defaultAnd()
or clear()
is called.
and
or or
to overide the default
operator for the current condition.
For example builder.where().assigneeIsEmpty().and().defaultOr().reporterIsCurrentUser().affectedVersion("10.5").defaultOr().issueType("bug").buildQuery()
will build the JQL query "assignee is empty and reporter = currentUser() or affectedVersion = '10.5' or issuetype = bug". Return a ConditionBuilder
that can be used to build a JQL condition for
issue descriptions.
Add a condition to the query that finds the issues that match the passed description. This essentially adds the
condition description ~ "value"
to the query being built.
value | the value of the condition. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues that have no description. This essentially adds the condition
description IS EMPTY
to the query being built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
issue's due date.
Add a condition to the query that finds the issues that are due after the passed date. This essentially
adds the query duedate >= startDate
to the query being built.
startDate | the date that issues must be due after. Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues that are due after the passed date. This essentially
adds the query duedate >= startDate
to the query being built.
startDate | the date that issues must be due after. Can be a date (e.g. "2008-10-23") or a period (e.g. "-3w"). Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues that where due between the passed dates. This essentially adds
the query duedate >= startDateString AND duedate <= endDateString
to the query being built.
null
. Passing a non-null
startDateString
with a null endDateString
will add the condition duedate >=
startDateString
. Passing a non-null endDateString
with a null startDateString
will add the
condition duedate <= endDateString
. Passing a null startDateString
and null endDateString
is illegal.startDateString | the date that issues must be due on or after. Can be a date (e.g. "2008-10-23") or a
period (e.g. "-3w"). May be null if endDateString is not null. |
---|---|
endDateString | the date that issues must be due on or before. Can be a date (e.g. "2008-10-23") or a period
(e.g. "-3w"). May be null if startDateString is not null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|---|
IllegalArgumentException | if both startDateString and endDateString are null.
|
Add a condition to the query that finds the issues that where due between the passed dates. This essentially adds
the query duedate >= startDate AND duedate <= endDate
to the query being built.
null
. Passing a non-null startDate
with a null endDate
will add the condition duedate >= startDate
. Passing a non-null
endDate
with a null startDate
will add the condition duedate <= endDate
. Passing a
null startDate
and null endDate
is illegal.startDate | the date that issues must be due on or after. May be null if endDate is not null. |
---|---|
endDate | the date that issues must be due on or before. May be null if startDate is not null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|---|
IllegalArgumentException | if both startDate and endDate are null.
|
Call this to get a handle on the associated JqlQueryBuilder
.
JqlQueryBuilder
. Null may be returned to indicate
there is no associated builder.
End the current sub JQL expression. This essentially adds a close bracket to the JQL query which will close the
last open bracket
.
IllegalStateException | if there is not current sub expression to close, that is, there is no matching call
to sub() . |
---|
Add a condition to the query that finds the issues that match the passed environment. This essentially adds the
condition environment ~ "value"
to the query being built.
value | the value of the condition. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
issue environments.
Add a condition to the query that finds the issues that have no environment. This essentially adds the condition
environment IS EMPTY
to the query being built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the passed name.
jqlName | the name of the JQL condition. Cannot be null. |
---|
Add a condition to the query that finds the issues associated particular set of fix versions. This essentially
adds the JQL condition fixVersion in (versions)
to the query being built.
versions | the fix versions to search for. Each version can be specified either by its name (e.g. "1.2") or by its JIRA ID as a string (e.g. "10000"). Must not be null, empty or contain any null values. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues associated particular set of fix versions. This essentially
adds the JQL condition fixVersion in (versions)
to the query being built.
versions | the fix versions to search for. Must not be null, empty or contain any null values. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condtion to the query that finds the issues associated with a particular fix version. This essentially adds
the JQL condition fixVersion = "value"
to the query being built.
version | the version to search for. Can be passed as its name (e.g. "1.2") or the string representation of its internal JIRA ID (e.g. "102020"). Must not be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condtion to the query that finds the issues associated with a particular fix version. This essentially adds
the JQL condition fixVersion = version
to the query being built.
version | the version to search for. Must not be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the fix version.
Adds adds a condition to the query to find issues with no assigned fix version. This essentially adds the JQL
condition fixVersion IS EMPTY
to the query being built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that will find all issues with the passed key. This essentially adds the JQL condition
key IN (keys)
to the query.
keys | the issues keys to search for. Cannot be null, empty or contain any nulls. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the issue's id or key.
Add a condition to the query that will find all issues currently within the user's history. This essentially adds
the JQL condition key IN issueHistory()
to the query.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that will find all issues the user has voted on. This essentially adds
the JQL condition key IN votedIssues()
to the query.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that will find all issues currently watched by the user. This essentially adds
the JQL condition key IN watchedIssues()
to the query.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the issue's parent.
Add a condition to the query that will find all issues that have the passed issues as parents. This essentially
adds the condition parent IN (keys)
to the query.
keys | the issues keys to search for. Cannot be null, empty or contain any nulls. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues of a particular type. This essentially adds the JQL condition
issuetype in (types)
to the query being built.
types | the JIRA issue types to search for. Each type can be specified either by its name (e.g. "Bug") or by its JIRA ID as a string (e.g. "10000"). Must not be null, empty or contain any null values. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
issue types.
Add a condition to the query that finds the "standard" issue types. Standard issues types are those that are not
sub-tasks. This essentially adds the JQL condition issuetype in standardIssueTypes()
to the query being
built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the "sub-task" issue types. This essentially adds the JQL condition
issuetype in subTaskIssueTypes()
to the query being built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the issue's labels.
Add a condition to the query to find all issues with particular labels. This essentially adds the JQL condition
labels in (labels)
to the query.
labels | the labels to search for. Must not be null, contain nulls or be empty. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query to find all issues that have no labels. This essentially adds the JQL condition
labels IS EMTPY
to the query.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
issue's last viewed date.
Add a condition to the query that finds the issues that where viewed after the passed date (if issue is
stored in history kept). This essentially adds the query lastViewed >= startDate
to the query being built.
startDate | the date that issues must be viewed after. Can be a date (e.g. "2008-10-23") or a period (e.g. "-3w"). Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues that where last viewed after the passed date (if issue is
stored in history kept). This essentially adds the query lastViewed >= startDate
to the query being built.
startDate | the date that issues must be viewed after. Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues that where last viewed between the passed dates. This essentially adds
the query lastViewed >= startDateString AND lastViewed <= endDateString
to the query being built.
null
. Passing a non-null
startDateString
with a null endDateString
will add the condition lastViewed >=
startDateString
. Passing a non-null endDateString
with a null startDateString
will add the
condition lastViewed <= endDateString
. Passing a null startDateString
and null endDateString
is illegal.startDateString | the date that issues must be last viewed on or after. Can be a date (e.g. "2008-10-23") or a
period (e.g. "-3w"). May be null if endDateString is not null. |
---|---|
endDateString | the date that issues must be last viewed on or before. Can be a date (e.g. "2008-10-23") or a period
(e.g. "-3w"). May be null if startDateString is not null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|---|
IllegalArgumentException | if both startDateString and endDateString are null.
|
Add a condition to the query that finds the issues that where viewed between the passed dates. This essentially adds
the query lastViewed >= startDate AND lastViewed <= endDate
to the query being built.
null
. Passing a non-null startDate
with a null endDate
will add the condition lastViewed >= startDate
. Passing a non-null
endDate
with a null startDate
will add the condition lastViewed <= endDate
. Passing a
null startDate
and null endDate
is illegal. This will only return issues that are stored in the
user's history ~ 50 issues.startDate | the date that issues must be viewed on or after. May be null if endDate is not null. |
---|---|
endDate | the date that issues must be viewed on or before. May be null if startDate is not null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|---|
IllegalArgumentException | if both startDate and endDate are null.
|
Add a condition to the query that will find all issues with the passed security levels. This essentially adds
the condition level IN (levels)
to the query.
levels | the security levels to search for. Cannot be null, empty or contain nulls. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the issue's security level.
Add the JQL "NOT" operator to the JQL expression currently being built. The builder takes into account operator
precendence when generating the JQL expression, and as such, the caller may need to group JQL conditions using
the sub()
and endsub()
calls. For example, builder.not().affectedVersion("11").and().effectedVersion("12")
produces the JQL NOT (affectedVersion = "11") and affectedVersion = "12"
as the and()
"AND"
operator} has a lower precedence than "NOT". On the other hand, builder.not().sub().affectedVersion("11").and().effectedVersion("12").endsub()
produces the JQL NOT(affectedVersion = "11" andaffectedVersion = "12")
.
IllegalStateException | if it is not possible to add the NOT operator given the current state of the builder. |
---|
Add the JQL "OR" operator to the JQL expression currently being built. The builder takes into account operator
precendence when generating the JQL expression, and as such, the caller may need to group JQL conditions using
the sub()
and endsub()
calls. For example, builder.issueType("bug").and().affectedVersion("11").or().affectedVersion("12")
produces the JQL (issueType = "bug" andaffectedVersion = "11") or affectedVersion = "12"
as the "AND" operator
has a higher precedence than "OR". On the other hand, builder.issueType("bug").and().sub().affectedVersion("11").or().affectedVersion("12").endsub()
produces the JQL
issueType = "bug" and (affectedVersion = "11" or affectedVersion = "12")
.
IllegalStateException | if it is not possible to add the OR operator given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the issue's original estimate.
Return a ConditionBuilder
that can be used to build a JQL condition for
the priority.
Add a condition to the query that finds the issues associated particular set of priorities. This essentially adds
the JQL condition priority in (priorities)
to the query being built.
priorities | the JIRA priorities to search for. Each priority can be specified either by its name (e.g. "Major") or by its JIRA ID as a string (e.g. "10000"). Must not be null, empty or contain any null values. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues within a particular project. This essentially adds the JQL
condition project in (pids)
to the query being built.
pids | the JIRA id's of the projects to search for. Cannot be null, empty or contain null values. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
an issue's project.
Add a condition to the query that finds the issues within a particular project. This essentially adds the JQL
condition project in (projects)
to the query being built.
projects | the JIRA projects to search for. Each project can be specified by its name (e.g. "JIRA"), its key (e.g. "JRA") or by its JIRA ID as a string (e.g. "10000"). Must not be null, empty or contain any null values. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the issue's reporter.
Add a condition to the query that finds all issues that were reported by users in a particular group. This essentially
adds the condition reporter in memboersOf("groupName")
to the query being built.
groupName | the group for the condition. Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds all issues that were reported by the current user. This essentially adds the
condition reporter = currentUser()
to the query being built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query to find issues without a reporter. This essentially adds the condition reporter IS EMPTY
to the query being built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds issues that where reported by the passed user. This essentially adds the
condition reporter = userName
to the query being built.
userName | the username to search for. Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
resolution.
Add a condition to the query that finds the issues associated particular set of resolutions. This essentially
adds the JQL condition resolution in (resultions)
to the query being built.
resolutions | the JIRA resolutions to search for. Each resolution can be specified either by its name (e.g. "Resolved") or by its JIRA ID as a string (e.g. "10000"). Must not be null, empty or contain any null values. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
issue's resolution date.
Add a condition to the query that finds the issues that were reolved after the passed date. This essentially
adds the query resolutiondate >= startDate
to the query being built.
startDate | the date that issues must be resolved after. Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues that were resolved after the passed date. This essentially
adds the query resolutiondate >= startDate
to the query being built.
startDate | the date that issues must be resolved after. Can be a date (e.g. "2008-10-23") or a period (e.g. "-3w"). Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues that where resolved between the passed dates. This essentially
adds the query resolutiondate >= startDate AND resolutiondate <= endDate
to the query being built.
null
. Passing a
non-null startDate
with a null endDate
will add the condition resolutiondate >=
startDate
. Passing a non-null endDate
with a null startDate
will add the condition resolutiondate <= endDate
. Passing a null startDate
and null endDate
is illegal.startDate | the date that issues must be resolved on or after. May be null if endDate is not null. |
---|---|
endDate | the date that issues must be resolved on or before. May be null if startDate is not null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|---|
IllegalArgumentException | if both startDate and endDate are null.
|
Add a condition to the query that finds the issues that where resolved between the passed dates. This essentially
adds the query resolutiondate >= startDateString AND resolutiondate <= endDateString
to the query
being built.
null
.
Passing a non-null startDateString
with a null endDateString
will add the condition resolutiondate >= startDateString
. Passing a non-null endDateString
with a null startDateString
will add the condition resolutiondate <= endDateString
. Passing a null startDateString
and null endDateString
is illegal.startDateString | the date that issues must be resolved on or after. Can be a date (e.g. "2008-10-23") or a
period (e.g. "-3w"). May be null if endDateString is not null. |
---|---|
endDateString | the date that issues must be resolved on or before. Can be a date (e.g. "2008-10-23") or a
period (e.g. "-3w"). May be null if startDateString is not null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|---|
IllegalArgumentException | if both startDateString and endDateString are null.
|
Return a ConditionBuilder
that can be used to add saved filters as conditions
to the query.
Add a condition to the query that will inclue the results from the passed filters in the search. This essentially
adds the condition filter IN (filters)
to the condition.
filters | the filters to include in the search. They can be specified by the name (e.g. "JIRA Unresolved") or by their JIRA id (e.g. "10000"). Cannot be null, empty or contain any nulls. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
status.
Add a condition to the query that finds the issues associated particular set of statuses. This essentially adds
the JQL condition status in (statuses)
to the query being built.
statuses | the JIRA statuses to search for. Each status can be specified either by its name (e.g. "Won't Fix") or by its JIRA ID as a string (e.g. "10000"). Must not be null, empty or contain any null values. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Create a new sub expression in the current JQL. This essentialy opens a bracket in the JQL query such that all
the JQL expressions from now until the next matching close bracket
are grouped together. This
can be used to override JQL's precedence rules. For example, builder.sub().affectedVersion("12").or().affectedVersion("11").endsub().and().issueType("bug")
will produce the JQL query (affectedVersion = "12" oraffectedVersion = "12") and type = "bug"
.
IllegalStateException | if it is not possible to create a sub JQL expression given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
issue summaries.
Add a condition to the query that finds the issues match the passed summary. This essentially adds the condition
summary ~ "value"
to the query being built.
value | the value of the condition. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the issue's timespent field.
Add a condition to query that finds the issues that have not been resolved. This essentially adds the JQL
condition resolution IS EMPTY
to the query being built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
issue's updated date.
Add a condition to the query that finds the issues that were updated after the passed date. This essentially
adds the query updated >= startDate
to the query being built.
startDate | the date that issues must be updated after. Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues that were updated after the passed date. This essentially
adds the query updated >= startDate
to the query being built.
startDate | the date that issues must be updated after. Can be a date (e.g. "2008-10-23") or a period (e.g. "-3w"). Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds the issues that where updated between the passed dates. This essentially
adds the query updated >= startDateString AND updated <= endDateString
to the query being built.
null
. Passing a
non-null startDateString
with a null endDateString
will add the condition updated >=
startDateString
. Passing a non-null endDateString
with a null startDateString
will add the
condition updated <= endDateString
. Passing a null startDateString
and null endDateString
is illegal.startDateString | the date that issues must be updated on or after. Can be a date (e.g. "2008-10-23") or a
period (e.g. "-3w"). May be null if endDateString is not null. |
---|---|
endDateString | the date that issues must be updated on or before. Can be a date (e.g. "2008-10-23") or a
period (e.g. "-3w"). May be null if startDateString is not null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|---|
IllegalArgumentException | if both startDateString and endDateString are null.
|
Add a condition to the query that finds the issues that where updated between the passed dates. This essentially
adds the query updated >= startDate AND updated <= endDate
to the query being built.
null
. Passing a non-null
startDate
with a null endDate
will add the condition updated >= startDate
. Passing a
non-null endDate
with a null startDate
will add the condition updated <= endDate
.
Passing a null startDate
and null endDate
is illegal.startDate | the date that issues must be updated on or after. May be null if endDate is not null. |
---|---|
endDate | the date that issues must be updated on or before. May be null if startDate is not null. |
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|---|
IllegalArgumentException | if both startDate and endDate are null.
|
Return a ConditionBuilder
that can be used to build a JQL condition for
the number of votes on an issue.
Add a condition to the query that finds all issues that were voted for by users in a particular group. This essentially
adds the condition voter in membersOf("groupName")
to the query being built.
groupName | the group for the condition. Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds all issues that were voted for by the current user. This essentially adds the
condition voter = currentUser()
to the query being built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query to find issues without any votes. This essentially adds the condition voter IS EMPTY
to the query being built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds issues that are voted for by the passed user. This essentially adds the
condition voter = userName
to the query being built.
userName | the username to search for. Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the number of votes on an issue.
Return a ConditionBuilder
that can be used to build a JQL condition for
the number of watches on an issue.
Add a condition to the query that finds all issues that were watched by users in a particular group. This essentially
adds the condition watcher in membersOf("groupName")
to the query being built.
groupName | the group for the condition. Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds all issues that were watched by the current user. This essentially adds the
condition watcher = currentUser()
to the query being built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query to find issues without any watchers. This essentially adds the condition watcher IS EMPTY
to the query being built.
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Add a condition to the query that finds issues that are watched by the passed user. This essentially adds the
condition watcher = userName
to the query being built.
userName | the username to search for. Cannot be null. |
---|
IllegalStateException | if it is not possible to add a JQL condition given the current state of the builder. |
---|
Return a ConditionBuilder
that can be used to build a JQL condition for
the number of watches on an issue.
Return a ConditionBuilder
that can be used to build a JQL condition for
the issue's work ratio field.