UNPKG

@itentialopensource/adapter-jira

Version:

This adapter integrates with system Jira

119 lines 3.18 kB
{ "queries": [ { "query": "summary ~ test AND (labels in (urgent, blocker) OR lastCommentedBy = currentUser()) AND status CHANGED AFTER -5d ORDER BY updated DESC", "structure": { "where": { "clauses": [ { "field": { "name": "summary" }, "operator": "~", "operand": { "value": "test" } }, { "clauses": [ { "field": { "name": "labels" }, "operator": "in", "operand": { "values": [ { "value": "urgent" }, { "value": "blocker" } ] } }, { "field": { "name": "lastCommentedBy", "property": [ { "entity": "issue", "key": "propertyKey", "path": "path.in.property", "type": "user" } ] }, "operator": "=", "operand": { "function": "currentUser", "arguments": [] } } ], "operator": "or" }, { "field": { "name": "status" }, "operator": "changed", "predicates": [ { "operator": "after", "operand": { "function": "startOfMonth", "arguments": [ "-1M" ] } } ] } ], "operator": "and" }, "orderBy": { "fields": [ { "field": { "name": "updated" }, "direction": "desc" } ] } } }, { "query": "invalid query", "errors": [ "Error in the JQL Query: Expecting operator but got 'query'. The valid operators are '=', '!=', '<', '>', '<=', '>=', '~', '!~', 'IN', 'NOT IN', 'IS' and 'IS NOT'. (line 1, character 9)" ] }, { "query": "summary = test", "errors": [ "The operator '=' is not supported by the 'summary' field." ] }, { "query": "summary in test", "errors": [ "Operator 'in' does not support the non-list value '\"test\"' for field 'summary'." ] }, { "query": "project = INVALID", "errors": [ "The value 'INVALID' does not exist for the field 'project'." ] }, { "query": "universe = 42", "errors": [ "Field 'universe' does not exist or you do not have permission to view it." ] } ] }