詳細検索の機能
The instructions on this page describe how to use fuctions in JQL to define structured search queries to search for JIRA issues. Your search results will be displayed in the Issue Navigator, where you can export them to MS Excel and many other formats. You can also save and subscribe to your advanced searches if you wish.
高度な検索を実行するときには、JIRA クエリ言語 (JQL) を使用します。
機能参照
A function in JQL appears as a word followed by parentheses which may contain one or more explicit values or JIRA fields. In a clause, a function is preceded by an operator, which in turn is preceded by a field. A function performs a calculation on either specific JIRA data or the function's content in parentheses, such that only true results are retrieved by the function and then again by the clause in which the function is used.
This document also covers the reserved characters and words that JIRA uses.
List of Functions
- cascadeOption()
- closedSprints()
- componentsLeadByUser()
- currentLogin()
- currentUser()
- earliestUnreleasedVersion()
- endOfDay()
- endOfMonth()
- endOfWeek()
- endOfYear()
- issueHistory()
- issuesWithRemoteLinksByGlobalId()
- lastLogin()
- latestReleasedVersion()
- linkedIssues()
- membersOf()
- now()
- openSprints()
- projectsLeadByUser()
- projectsWhereUserHasPermission()
- projectsWhereUserHasRole()
- releasedVersions()
- standardIssueTypes()
- startOfDay()
- startOfMonth()
- startOfWeek()
- startOfYear()
- subtaskIssueTypes()
- unreleasedVersions()
- votedIssues()
- watchedIssues()
cascadeOption()
Search for issues that match the selected values of a 'cascading select' custom field.
The parentOption parameter matches against the first tier of options in the cascading select field. The childOption parameter matches against the second tier of options in the cascading select field, and is optional.
The keyword "none"
can be used to search for issues where either or both of the options have no value.
構文
cascadeOption(parentOption)
または
cascadeOption(parentOption,childOption)
Supported Fields
- custom fields of type 'Cascading Select'
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues where a custom field ("Location") has the value "USA" for the first tier and "New York" for the second tier:
location in cascadeOption("USA","New York")
Find issues where a custom field ("Location") has the value "USA" for the first tier and any value (or no value) for the second tier:
location in cascadeOption("USA")
Find issues where a custom field ("Location") has the value "USA" for the first tier and no value for the second tier:
location in cascadeOption("USA",none)
Find issues where a custom field ("Location") has no value for the first tier and no value for the second tier:
location in cascadeOption(none)
Find issues where a custom field ("Referrer") has the value "none" for the first tier and "none" for the second tier:
referrer in cascadeOption("\"none\"","\"none\"")
Find issues where a custom field ("Referrer") has the value "none" for the first tier and no value for the second tier:
referrer in cascadeOption("\"none\"",none)
^top of functions | ^^top of topic
closedSprints()
Only available if you are using JIRA Agile 6.7.
Search for issues that are assigned to a completed Sprint. (Note that it is possible for an issue to belong to both a completed Sprint(s) and an incomplete Sprint(s).)
See also openSprints().
構文
closedSprints()
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find all issues that are assigned to a completed Sprint.
sprint in closedSprints()
^top of functions | ^^top of topic
componentsLeadByUser()
Find issues in components that are lead by a specific user.
You can optionally specify a user, or if the user is omitted the current user (i.e. you) will be used.
Note that if you are not logged in to JIRA, a user must be specified.
構文
componentsLeadByUser()
または
componentsLeadByUser(username)
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find open issues in components that are lead by you:
component in componentsLeadByUser() AND status = Open
Find open issues in components that are lead by Bill:
component in componentsLeadByUser(bill) AND status = Open
^top of functions | ^^top of topic
currentLogin()
Perform searches based on the time at which the current user's session began. See also lastLogin.
構文
currentLogin()
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(only in | (only in | (only in | (only in | (only in predicate) |
例
Find issues that have been created during my current session:
created > currentLogin()
^top of functions | ^^top of topic
currentUser()
Perform searches based on the currently logged-in user.
Note that this function can only be used by logged-in users. So if you are creating a saved filter that you expect to be used by anonymous users, do not use this function.
構文
currentUser()
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues that are assigned to me:
assignee = currentUser()
自分が報告したが自分に割り当てられていない課題を検索:
reporter = currentUser() and assignee != currentUser()
^top of functions | ^^top of topic
earliestUnreleasedVersion()
Perform searches based on the earliest unreleased version (i.e. next version that is due to be released) of a specified project. See also unreleasedVersions.
Note that the "earliest" is determined by the ordering assigned to the versions, not by actual Version Due Dates.
構文
earliestUnreleasedVersion(project)
Supported Fields
- AffectedVersion
- FixVersion
- custom fields of type Version
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues whose FixVersion is the earliest unreleased version of the ABC project:
fixVersion = earliestUnreleasedVersion(ABC)
Find issues that relate to the earlist unreleased version of the ABC project:
affectedVersion = earliestUnreleasedVersion(ABC) or fixVersion = earliestUnreleasedVersion(ABC)
^top of functions | ^^top of topic
endOfDay()
Perform searches based on the end of the current day. See also endOfWeek, endOfMonth and endOfYear; and startOfDay, startOfWeek, startOfMonth and startOfYear.
構文
endOfDay()
または
endOfDay("inc")
where inc
is an optional increment of (+/-)nn(y|M|w|d|h|m)
- If the time unit qualifier is omitted it defaults to the natural period of the function, e.g.
endOfDay("+1")
is the same asendOfDay("+1d")
. - If the plus/minus
(+/-)
sign is omitted, plus is assumed.
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(only in | (only in | (only in | (only in | (only in predicate) |
例
Find issues due by the end of today:
due < endOfDay()
Find issues due by the end of tomorrow:
due < endOfDay("+1")
^top of functions | ^^top of topic
endOfMonth()
Perform searches based on the end of the current month. See also endOfDay, endOfWeek and endOfYear; and startOfDay, startOfWeek, startOfMonth and startOfYear.
構文
endOfMonth()
または
endOfMonth("inc")
where inc
is an optional increment of (+/-)nn(y|M|w|d|h|m)
- If the time unit qualifier is omitted it defaults to the natural period of the function, e.g.
endOfMonth("+1")
is the same asendOfMonth("+1M")
. - If the plus/minus
(+/-)
sign is omitted, plus is assumed.
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(only in | (only in | (only in | (only in | (only in predicate) |
例
Find issues due by the end of this month:
due < endOfMonth()
Find issues due by the end of next month:
due endOfMonth("+1")
Find issues due by the 15th of next month:
due endOfMonth("+15d")
^top of functions | ^^top of topic
endOfWeek()
Perform searches based on the end of the current week. See also endOfDay, endOfMonth and endOfYear; and startOfDay, startOfWeek, startOfMonth and startOfYear.
For the endOfWeek() function the result depends upon your locale. For example, in Europe the first day of the week is generally considered to be Monday, while in the USA it is considered to be Sunday.
構文
endOfWeek()
または
endOfWeek("inc")
where inc
is an optional increment of (+/-)nn(y|M|w|d|h|m)
- If the time unit qualifier is omitted it defaults to the natural period of the function, e.g. endOfWeek("+1") is the same as endofWeek("+1w").
- If the plus/minus
(+/-)
sign is omitted, plus is assumed.
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(only in | (only in | (only in | (only in | (only in predicate) |
例
Find issues due by the end of this week:
due < endOfWeek()
Find issues due by the end of next week:
due < endOfWeek("+1")
^top of functions | ^^top of topic
endOfYear()
Perform searches based on the end of the current year. See also startOfDay, startOfWeek and startOfMonth; and endOfDay, endOfWeek, endOfMonth and endOfYear.
endOfYear()
または
endOfYear("inc")
where inc
is an optional increment of (+/-)nn(y|M|w|d|h|m)
- If the time unit qualifier is omitted it defaults to the natural period of the function, e.g.
endOfYear("+1")
is the same asendofYear("+1y")
. - If the plus/minus
(+/-)
sign is omitted, plus is assumed.
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(only in | (only in | (only in | (only in | (only in predicate) |
例
Find issues due by the end of this year:
due < endOfYear()
Find issues due by the end of March next year:
due < endOfYear("+3M")
^top of functions | ^^top of topic
issueHistory()
最近閲覧した課題、つまり [課題] ドロップダウン メニューの [最近表示した課題] セクションにある課題を検索します。
注意:
issueHistory()
returns up to 50 issues, whereas the 'Recent Issues' drop-down returns only 5.- JIRA にログインしていない場合、現在利用しているブラウザのセッションから取得した課題だけが含まれます。
構文
issueHistory()
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues which I have recently viewed, that are assigned to me:
issue in issueHistory() AND assignee = currentUser()
^top of functions | ^^top of topic'
issuesWithRemoteLinksByGlobalId()
Perform searches based on issues which are associated with remote links that have any of the specified global ids.
注意:
- この関数では 1 から 100 の globalId を指定できます。0、または 100 よりも大きい globalId を指定するとエラーになります。
構文
issuesWithRemoteLinksByGlobalId()
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues that are linked to remote links that have globalId "abc":
issue in issuesWithRemoteLinksByGlobalId(abc)
Find issues that are linked to remote links that have either globalId "abc" or "def"
issue in issuesWithRemoteLinksByGlobalId(abc, def)
^top of functions | ^^top of topic
lastLogin()
Perform searches based on the time at which the current user's previous session began. See also currentLogin.
構文
lastLogin()
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(only in | (only in | (only in | (only in | (only in predicate) |
例
Find issues that have been created during my last session:
created > lastLogin()
^top of functions | ^^top of topic
latestReleasedVersion()
Perform searches based on the latest released version (i.e. the most recent version that has been released) of a specified project. See also releasedVersions().
Note that the "latest" is determined by the ordering assigned to the versions, not by actual Version Due Dates.
構文
latestReleasedVersion(project)
Supported Fields
- AffectedVersion
- FixVersion
- custom fields of type Version
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues whose FixVersionis the latest released version of the ABC project:
fixVersion = latestReleasedVersion(ABC)
Find issues that relate to the latest released version of the ABC project:
affectedVersion = latestReleasedVersion(ABC) or fixVersion = latestReleasedVersion(ABC)
^top of functions | ^^top of topic
linkedIssues()
Perform searches based on issues which are linked to a specified issue.
You can optionally restrict the search to links of a particular type. Note that LinkType is case-sensitive.
構文
linkedIssues(issueKey)
または
linkedIssues(issueKey,linkType)
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues that are linked to a particular issue:
issue in linkedIssues(ABC-123)
Find issues that are linked to a particular issue via a particular type of link:
issue in linkedIssues(ABC-123,"is duplicated by")
^top of functions | ^^top of topic
membersOf()
特定のグループのメンバーに基づく検索を実施します。
構文
membersOf(Group)
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues where the Assignee is a member of the group "jira-developers":
assignee in membersOf("jira-developers")
Search through multiple groups and a specific user, e.g:
reporter in membersOf("jira-developers") or reporter in membersOf("jira-administrators") or reporter=jsmith
Search for a particular group, but exclude a particular member or members, e.g.:
assignee in membersOf(QA) and assignee not in ("John Smith","Jill Jones")
Exclude members of a particular group:
assignee not in membersOf(QA)
^top of functions | ^^top of topic
now()
現在の時刻に基づいた検索を行います。
構文
now()
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(only in | (only in | (only in | (only in | (only in predicate) |
例
Find issues that are overdue:
duedate < now() and status not in (closed, resolved)
^top of functions | ^^top of topic
openSprints()
Only available if you are using JIRA Agile 6.7.
Search for issues that are assigned to a Sprint which has not yet been completed. (Note that it is possible for an issue to belong to both a completed Sprint(s) and an incomplete Sprint(s).)
See also closedSprints().
構文
openSprints()
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find all issues that are assigned to a Sprint which has not yet been completed.
sprint in openSprints()
^top of functions | ^^top of topic
projectsLeadByUser()
Find issues in projects that are lead by a specific user.
You can optionally specify a user, or if the user is omitted the current user will be used.
Note that if you are not logged in to JIRA, a user must be specified.
構文
projectsLeadByUser()
または
projectsLeadByUser(username)
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find open issues in projects that are lead by you:
project in projectsLeadByUser() AND status = Open
Find open issues in projects that are lead by Bill:
project in projectsLeadByUser(bill) AND status = Open
^top of functions | ^^top of topic
projectsWhereUserHasPermission()
Find issues in projects where you have a specific permission.
Note: This function operates at the project level. This means that if a permission (e.g. "Edit Issues") is granted to the reporter of issues in a project, then you may see some issues returned where you are
not the reporter and therefore don't have the permission specified.
Also note that this function is only available if you are logged in to JIRA.
構文
projectsWhereUserHasPermission(permission)
For the permission
parameter you can specify any of the following:
プロジェクト権限 | 説明 |
---|---|
プロジェクト管理 | Permission to administer a project in JIRA. This includes the ability to edit project role membership, project components, project versions and some project details ('Project Name', 'URL', 'Project Lead', 'Project Description'). |
プロジェクトの参照 | Permission to browse projects, use the Issue Navigator and view individual issues (except issues that have been restricted via Issue Security). Many other permissions are dependent on this permission, e.g. the 'Work On Issues' permission is only effective for users who also have the 'Browse Projects' permission. |
開発ツールの参照 | |
「読み取り専用」ワークフローの表示 | Permission to view the project's 'read-only' workflow when viewing an issue. This permission provides the 'View Workflow' link against the 'Status' field of the 'View Issue' page. |
課題の権限 | 説明 |
課題の割り当て | ユーザに課題を割り当てる権限。課題の割り当てドロップダウンでのユーザーのオートコンプリートも可能です。(以下の「割り当て可能ユーザー権限」も参照) |
割り当て可能なユーザー | 課題への割り当てが可能な権限 (注: 課題を割り当てをする権限は含みません。上記の課題の割り当てを参照ください。) |
課題のクローズ | Permission to close issues. (This permission is useful where, for example, developers resolve issues and testers close them). Also see the Resolve Issues permission. |
課題の作成 | Permission to create issues in the project. (Note that the Create Attachments permission is required in order to create attachments.) Includes the ability to create sub-tasks (if sub-tasks are enabled). |
課題の削除 | 課題を削除する権限。この権限を割り当てるグループやプロジェクト ロールは慎重に検討してください。通常は管理者のみに与えられます。課題を削除すると、そのユーザーがコメントの削除権限や添付ファイルの削除権限を持たない場合であっても、課題のコメントや添付ファイルがすべて削除される点にご注意ください。ただし、課題の削除権限には、個々のコメントや添付ファイルを削除する権限は含まれません。 |
課題の編集 | Permission to edit issues (excluding the 'Due Date' field — see the Schedule Issues permission). Includes the ability to convert issues to sub-tasks and vice versa (if sub-tasks are enabled). Note that the Delete Issue permission is required in order to delete issues. The Edit Issue permission is usually given to any groups or project roles who have the Create Issue permission (perhaps the only exception to this is if you give everyone the ability to create issues — it may not be appropriate to give everyone the ability to edit too). Note that all edits are recorded in the Issue Change History for audit purposes. |
課題のリンク | Permission to link issues together. (Only relevant if Issue Linking is enabled). |
報告者の修正 | 課題の [報告者] を変更する権限。これによって、ユーザーは、誰かの代理で課題を作成できるようになります。この権限は一般に、管理者にのみ付与する必要があります。 |
課題の移動 | 1つのプロジェクトから別のプロジェクト、または同じプロジェクト内の1つのワークフローから別のワークフローへ課題を移動する権限。ユーザーは課題の作成権限を持っているプロジェクトにのみ課題を移動できます。 |
課題の解決 | Permission to resolve and reopen issues. This also includes the ability to set the 'Fix For version' field for issues. Also see the Close Issues permission. |
課題のスケジュール | Permission to schedule an issue — that is, to edit the 'Due Date' of an issue. In older versions of JIRA this also controlled the permission to view the 'Due Date' of an issue. |
課題のセキュリティの設定 | Permission to set the security level on an issue to control who can access the issue. Only relevant if issue security has been enabled. |
課題のトランジション | Permission to transition (change) the status of an issue. |
投票とウォッチャーの権限 | 説明 |
ウォッチャー一覧の管理 | Permission to manage (i.e. view/add/remove users to/from) the watcher list of an issue. |
投票とウォッチャーの表示 | Permission to view the voter list and watcher list of an issue. Also see the Manage Watcher List permission. |
コメントの権限 | 説明 |
コメントの追加 | Permission to add comments to issues. Note that this does not include the ability to edit or delete comments. |
すべてのコメントの削除 | コメントを削除する権限。 誰が追加したコメントでも削除できます。 |
自身のコメントの削除 | Permission to delete comments that were added by the user. |
すべてのコメントの編集 | コメントを編集する権限。誰が追加したコメントでも編集できます。 |
自身のコメントの編集 | Permission to edit comments that were added by the user. |
添付ファイルの権限 | 説明 |
添付ファイルの作成 | Permission to attach files to an issue. (Only relevant if attachments are enabled). Note that this does not include the ability to delete attachments. |
すべての添付ファイルの削除 | 添付ファイルを削除する権限。 誰が追加した添付ファイルでも削除できます。 |
自分の添付ファイルの削除 | 対象のユーザーが追加した添付ファイルを削除する権限。 |
時間管理の権限 | 説明 |
課題の作業ログ | Permission to log work against an issue, i.e. create a worklog entry. (Only relevant if Time Tracking is enabled). |
すべての作業ログの削除 | Permission to delete any worklog entries, regardless of who added them. (Only relevant if Time Tracking is enabled). Also see the Work On Issues permission. |
自分の作業ログの削除 | Permission to delete worklog entries that were added by the user. (Only relevant if Time Tracking is enabled). Also see the Work On Issues permission. |
すべての作業ログの編集 | Permission to edit any worklog entries, regardless of who added them. (Only relevant if Time Tracking is enabled). Also see the Work On Issues permission. |
自分の作業ログの編集 | Permission to edit worklog entries that were added by the user. (Only relevant if Time Tracking is enabled). Also see the Work On Issues permission. |
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find open issues in projects where you have the "Resolve Issues" permission:
project in projectsWhereUserHasPermission("Resolve Issues") AND status = Open
^top of functions | ^^top of topic
projectsWhereUserHasRole()
Find issues in projects where you have a specific role.
Note that this function is only available if you are logged in to JIRA.
構文
projectsWhereUserHasRole(rolename)
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find open issues in projects where you have the "Developers" role:
project in projectsWhereUserHasRole("Developers") AND status = Open
^top of functions | ^^top of topic
releasedVersions()
Perform searches based on the released versions (i.e. versions that your JIRA administrator has released) of a specified project.
You can also search on the released versions of all projects, by omitting the project parameter.
See also latestReleasedVersion().
構文
releasedVersions()
または
releasedVersions(project)
Supported Fields
- AffectedVersion
- FixVersion
- custom fields of type Version
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues whose FixVersion is a released version of the ABC project:
fixVersion in releasedVersions(ABC)
Find issues that relate to released versions of the ABC project:
(affectedVersion in releasedVersions(ABC)) or (fixVersion in releasedVersions(ABC))
^top of functions | ^^top of topic
standardIssueTypes()
Perform searches based on "standard" Issue Types, that is, search for issues which are not sub-tasks.
See also subtaskIssueTypes().
構文
standardIssueTypes()
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues that are not subtasks (i.e. issues whose Issue Type is a standard issue type, not a subtask issue type):
issuetype in standardIssueTypes()
^top of functions | ^^top of topic
startOfDay()
Perform searches based on the start of the current day. See also startOfWeek, startOfMonth and startOfYear; and endOfDay, endOfWeek, endOfMonth and endOfYear.
構文
startOfDay()
または
startOfDay("inc")
where inc
is an optional increment of (+/-)nn(y|M|w|d|h|m)
- If the time unit qualifier is omitted it defaults to the natural period of the function, e.g.
startOfDay("+1")
is the same asstartofDay("+1d")
. - If the plus/minus
(+/-)
sign is omitted, plus is assumed.
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(only in | (only in | (only in | (only in | (only in predicate) |
例
Find new issues created since the start of today:
created > startOfDay()
Find new issues created since the start of yesterday:
created > startOfDay("-1")
Find new issues created in the last three days:
created > startOfDay("-3d")
^top of functions | ^^top of topic
startOfMonth()
Perform searches based on the start of the current month. See also startOfDay, startOfWeek and startOfYear; and endOfDay, endOfWeek, endOfMonth and endOfYear.
構文
startOfMonth()
または
startOfMonth("inc")
where inc
is an optional increment of (+/-)nn(y|M|w|d|h|m)
- If the time unit qualifier is omitted it defaults to the natural period of the function, e.g.
startOfMonth("+1")
is the same asstartofMonth("+1M")
. - If the plus/minus
(+/-)
sign is omitted, plus is assumed.
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(only in | (only in | (only in | (only in | (only in predicate) |
例
Find new issues since the start of this month:
created > startOfMonth()
Find new issues since the start of last month:
created > startOfMonth("-1")
Find new issues since the 15th of this month:
created > startOfMonth("+14d")
^top of functions | ^^top of topic
startOfWeek()
Perform searches based on the start of the current week. See also startOfDay, startOfMonth and startOfYear; and endOfDay, endOfWeek, endOfMonth and endOfYear.
For the startOfWeek() function the result depends upon your locale. For example, in Europe the first day of the week is generally considered to be Monday, while in the USA it is considered to be Sunday.
See Change Locale for Jira server for more information.
構文
startOfWeek()
または
startOfWeek("inc")
where inc
is an optional increment of (+/-)nn(y|M|w|d|h|m)
- If the time unit qualifier is omitted it defaults to the natural period of the function, e.g. startOfWeek("+1") is the same as startofWeek("+1w").
- If the plus/minus
(+/-)
sign is omitted, plus is assumed.
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(only in | (only in | (only in | (only in | (only in predicate) |
例
Find new issues since the start of this week:
created > startOfWeek()
Find new issues since the start of last week:
created > startOfWeek("-1")
^top of functions | ^^top of topic
startOfYear()
Perform searches based on the start of the current year. See also startOfDay, startOfWeek and startOfMonth; and endOfDay, endOfWeek, endOfMonth and endOfYear.
startOfYear()
または
startOfYear("inc")
where inc
is an optional increment of (+/-)nn(y|M|w|d|h|m)
- If the time unit qualifier is omitted it defaults to the natural period of the function, e.g.
startOfYear("+1")
is the same asstartofYear("+1y")
. - If the plus/minus
(+/-)
sign is omitted, plus is assumed.
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
(only in | (only in | (only in | (only in | (only in predicate) |
例
Find new issues since the start of this year:
created > startOfYear()
Find new issues since the start of last year:
created > startOfYear("-1")
^top of functions | ^^top of topic
subtaskIssueTypes()
Perform searches based on issues which are sub-tasks.
See also standardIssueTypes().
構文
subtaskIssueTypes()
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues that are subtasks (i.e. issues whose Issue Type is a subtask issue type):
issuetype in subtaskIssueTypes()
^top of functions | ^^top of topic
unreleasedVersions()
Perform searches based on the unreleased versions (i.e. versions that your JIRA administrator has not yet released) of a specified project.
You can also search on the unreleased versions of all projects, by omitting the project parameter.
See also earliestUnreleasedVersion().
構文
unreleasedVersions()
または
unreleasedVersions(project)
Supported Fields
- AffectedVersion
- FixVersion
- custom fields of type Version
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues whose FixVersionis an unreleased version of the ABC project:
fixVersion in unreleasedVersions(ABC)
Find issues that relate to unreleased versions of the ABC project:
affectedVersion in unreleasedVersions(ABC)
または
fixVersion in unreleasedVersions(ABC)
^top of functions | ^^top of topic
votedIssues()
Perform searches based on issues for which you have voted. Also see the Voter field.
Note that this function can only be used by logged-in users.
構文
votedIssues()
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues that you have voted for:
issue in votedIssues()
^top of functions | ^^top of topic
watchedIssues()
Perform searches based on issues which you are watching. Also see the Watcher field.
Note that this function can only be used by logged-in users.
構文
watchedIssues()
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues that you are watching:
issue in watchedIssues()
Supported Fields
サポートされる演算子
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
例
Find issues that you have recently viewed:
issue in issueHistory()
Reserved Characters
JQLには次の一連の予約文字があります。
- space (
" "
) "+"
"."
","
";"
"?"
"|"
"*"
"/"
"%"
"^"
"$"
"#"
"@"
"["
"]"
これらの文字をクエリで利用したい場合、次のようにする必要があります。
- surround them with quote-marks (you can use either single quote-marks (
'
) or double quote-marks ("
));
and, if you are searching a text field and the character is on the list of reserved characters for Text Searches, - 2 つのバックスラッシュを直前に配置します。
The text fields are:
- 要約
- 説明
- 環境
- コメント
- custom fields which use the "Free Text Searcher"; this includes custom fields of the following built-in Custom Field Types
- フリー テキスト フィールド (無制限のテキスト)
- テキスト フィールド (255 文字までのテキスト)
- 読み取り専用テキスト フィールド
The JQL field "text" as in text ~ "some words"
searches an issue's Summary, Description, Environment, Comments. It also searches all text custom fields. If you have many text custom fields you can improve performance of your queries by searching on specific fields, e.g. Summary ~ "some words" OR Description ~ "some words"
例:
version = "[example]"
version = "4.2"
summary ~ "\\[example\\]"
summary ~ "4.2"
Reserved Words
JQL has a list of reserved words. These words need to be surrounded by quote-marks if you wish to use them in queries:
"abort", "access", "add", "after", "alias", "all", "alter", "and", "any", "as", "asc",
"audit", "avg", "before", "begin", "between", "boolean", "break", "by", "byte", "catch", "cf",
"char", "character", "check", "checkpoint", "collate", "collation", "column", "commit", "connect", "continue",
"count", "create", "current", "date", "decimal", "declare", "decrement", "default", "defaults", "define", "delete",
"delimiter", "desc", "difference", "distinct", "divide", "do", "double", "drop", "else", "empty", "encoding",
"end", "equals", "escape", "exclusive", "exec", "execute", "exists", "explain", "false", "fetch", "file", "field",
"first", "float", "for", "from", "function", "go", "goto", "grant", "greater", "group", "having",
"identified", "if", "immediate", "in", "increment", "index", "initial", "inner", "inout", "input", "insert",
"int", "integer", "intersect", "intersection", "into", "is", "isempty", "isnull", "join", "last", "left",
"less", "like", "limit", "lock", "long", "max", "min", "minus", "mode", "modify",
"modulo", "more", "multiply", "next", "noaudit", "not", "notin", "nowait", "null", "number", "object",
"of", "on", "option", "or", "order", "outer", "output", "power", "previous", "prior", "privileges",
"public", "raise", "raw", "remainder", "rename", "resource", "return", "returns", "revoke", "right", "row",
"rowid", "rownum", "rows", "select", "session", "set", "share", "size", "sqrt", "start", "strict",
"string", "subtract", "sum", "synonym", "table", "then", "to", "trans", "transaction", "trigger", "true",
"uid", "union", "unique", "update", "user", "validate", "values", "view", "when", "whenever", "where",
"while", "with"
You can use either single quote-marks ('
) or double quote-marks ("
).
(Note for JIRA administrators: this list is hard coded in the JqlStringSupportImpl.java
file.)
= | != | ~ | !~ | > | >= | < | <= | IS | IS NOT | IN | NOT IN | WAS | WAS IN | WAS NOT | WAS NOT IN | CHANGED |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
- この関数では 1 から 100 の globalId を指定できます。0、または 100 よりも大きい globalId を指定するとエラーになります。