Skip to content

Latest commit

 

History

History
38 lines (29 loc) · 1.2 KB

README.md

File metadata and controls

38 lines (29 loc) · 1.2 KB

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