The Request Type key cannot be changed once the Request Type is created. Different types of custom fields support different functions. Search for issues where a particular custom field has a particular value. You can search by custom field name or custom field ID (i.e. the number that Jira automatically allocates to a custom field). Only applicable if your Jira administrator has created one or more custom fields. You can search by the user’s full name, ID, or email address.

jql vs sql

In JPQL, you also can use a comprised select list, selecting the data only from the entity fields of interest. In that case, however, you need to create the class to which you will cast the query result. In the following section, you will see an example of a JPQL join query whose select list is comprised of the fields derived from more than one entity.

Issue key

Both are used to access and manipulate database data, in the long run. And both use nonprocedural statements—commands recognized by a special interpreter. Search for all subtasks of a particular issue in company-managed projects or subtasks of a particular epic in team-managed projects. You can search by issue key or by issue ID (i.e. the number that Jira automatically allocates to an Issue). Search for issues that have a particular link type, like blocks or is duplicated by.

Search for issues that were last viewed on, before, or after a particular date (or date range). To search for issues that belong to a particular epic in team-managed projects, use parent. We can execute these SQL queries directly in our databases using native queries, which refer to real databases and table objects. We need to set the value of the nativeQuery attribute to true for defining a native SQL query. The native SQL query will be defined in the value attribute of the annotation.

JQL and SQL (working together in the same query)

In terms of the optimizer, it shouldn’t make a difference whether you define your join clauses with ON or WHERE. Notice how the rows in documents that did not match both the conditions are populated with NULL values. For above query the intermediate join table will look like this. With an INNER JOIN, the clauses are effectively equivalent. However, just because they are functionally the same, in that they produce the same results, does not mean the two kinds of clauses have the same semantic meaning.

  • It permits users to create, read, update, and delete records in the database through declarative statements.
  • As a result, we can detect errors in Criteria API during the compile time.
  • For above query the intermediate join table will look like this.
  • The result of the above sentence is a text string that will be executed and resolved by the JQL table returning all the issues in that project version.
  • SQL+JQL is a H2 in-memory database which uses the H2 API to plug tables.
  • Search for issues that belong to projects in a particular category.

We can define our queries as Named Queries to place them in the actual code that accesses the database. SQL is a database language for managing and manipulating data, while JavaScript is a web programming language designed for creating dynamic websites with interactive elements. In many cases, using SQL and JavaScript is the optimal solution, particularly in web development.

The “IN” operator is used to search for issues where the value of the specified field is one of multiple specified values. The values are specified as a comma-delimited list, surrounded by parentheses. Search for issues that were last updated on, before, or after a particular date (or date range). It is possible for your Jira administrator to change the name of a type, which could break any saved filter that rely on that name. Search for issues that were resolved on, before, or after a particular date (or date range).

Copy and paste the query above in the SQL console and perform it to see the results. Field ‘issues’ does not exist or you do not have permission what are JQL queries and how to use them to view it. In this article, we mainly looked at the basics of Criteria queries, JPQL queries, and the HQL queries in Hibernate and JPA.