Skip to content
/ jql Public

Simple Jira Query Language (JQL) builder for kotlin projects

License

Notifications You must be signed in to change notification settings

x950827/jql

Repository files navigation

JQL

Maven Central Tests

This library provides a simple Jira Query Language (JQL) builder for kotlin projects.

More info about JQL: https://www.atlassian.com/software/jira/guides/expand-jira/jql

Install

dependencies {
    implementation("io.github.x950827:jql:0.0.1")
}

Usage

val jql = withJql { 
        condition { project().eq("Development") }
        and { status().`in`("In Progress") }
        and {
            condition { field("reporter").notEq("Ivan Ivanovich") }
            or { customField(32155).notIn("value1", "value2") }
        }
        orderBy("created").asc()
    }

jql.toString() // or jql.queryString()
// equals to 
// project = 'Development' 
// and status in ('In Progress') 
// and (reporter != 'Ivan Ivanovich' or cf[32155] not in ('value1', 'value2')) 
// order by created asc

About

Simple Jira Query Language (JQL) builder for kotlin projects

Resources

License

Stars

Watchers

Forks

Languages