Documentation ¶
Overview ¶
Package jql is a very simple JQL query builder that cannot do a lot at the moment.
There is no JQL syntax check and relies on the package user to construct a valid query.
It cannot combine AND and OR query currently. That means you cannot construct a query like the one below: project="JQL" AND issue in openSprints() AND (type="Story" OR resolution="Done")
Index ¶
- Constants
- type GroupFunc
- type JQL
- func (j *JQL) And(fn GroupFunc) *JQL
- func (j *JQL) FilterBy(field, value string) *JQL
- func (j *JQL) Gt(field, value string, wrap bool) *JQL
- func (j *JQL) Gte(field, value string, wrap bool) *JQL
- func (j *JQL) History() *JQL
- func (j *JQL) In(field string, value ...string) *JQL
- func (j *JQL) Lt(field, value string, wrap bool) *JQL
- func (j *JQL) NotIn(field string, value ...string) *JQL
- func (j *JQL) Or(fn GroupFunc) *JQL
- func (j *JQL) OrderBy(field, dir string) *JQL
- func (j *JQL) Raw(q string) *JQL
- func (j *JQL) String() string
- func (j *JQL) Watching() *JQL
Constants ¶
View Source
const ( // DirectionAscending is an ascending sort order. DirectionAscending = "ASC" // DirectionDescending is a descending sort order. DirectionDescending = "DESC" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JQL ¶
type JQL struct {
// contains filtered or unexported fields
}
JQL is a jira query language constructor.
func (*JQL) FilterBy ¶
FilterBy filters with a given field.
If the value is `x`, it construct the query with IS EMPTY operator, uses equals otherwise.
Click to show internal directories.
Click to hide internal directories.